Skip to content

Commit

Permalink
Merge pull request #12677 from angeloskaltsikis/fix-delete-iam-instan…
Browse files Browse the repository at this point in the history
…ce-profile

Fix that states AWS IAM Instance Profile blocks IAM Role
  • Loading branch information
k8s-ci-robot committed Nov 4, 2021
2 parents e6eadbb + b284537 commit 10cbb9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/resources/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -2041,6 +2041,7 @@ func ListIAMInstanceProfiles(cloud fi.Cloud, clusterName string) ([]*resources.R
Deleter: DeleteIAMInstanceProfile,
Obj: profile,
}
resourceTracker.Blocks = append(resourceTracker.Blocks, "iam-role:"+name)

resourceTrackers = append(resourceTrackers, resourceTracker)
}
Expand Down

0 comments on commit 10cbb9b

Please sign in to comment.