Skip to content

Commit

Permalink
Include IpPermissions in error message to troubleshoot 400 error
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Apr 11, 2024
1 parent 71d2cc3 commit daa1e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/aws/securitygroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func DeleteSecurityGroup(cloud fi.Cloud, t *resources.Resource) error {
}
_, err = c.EC2().RevokeSecurityGroupIngress(ctx, revoke)
if err != nil {
return fmt.Errorf("cannot revoke ingress for ID %q: %v", id, err)
return fmt.Errorf("cannot revoke ingress for ID %q with IpPermissions %+v: %v", id, sg.IpPermissions, err)
}
}
}
Expand Down

0 comments on commit daa1e86

Please sign in to comment.