We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e9b9f7 + 793e4a5 commit 75056dfCopy full SHA for 75056df
1 file changed
cmd/dlt/iamserviceaccount/cmd.go
@@ -258,6 +258,13 @@ func DeleteIamServiceAccountRunner(userOptions *iamServiceAccountOpts.DeleteIamS
258
return nil
259
}
260
261
+ // Delete inline policies
262
+ if len(inlinePolicies) > 0 {
263
+ err = r.AWSClient.DeleteInlineRolePolicies(roleName)
264
+ if err != nil {
265
+ return fmt.Errorf("failed to delete inline role policies: %s", err)
266
+ }
267
268
// Delete the role
269
err = r.AWSClient.DeleteServiceAccountRole(roleName)
270
if err != nil {
0 commit comments