iam_instance_profile state issue when missing iam:AddRoleToInstanceProfile permission #7792
Labels
bug
Addresses a defect in current functionality.
service/iam
Issues and PRs that pertain to the iam service.
Milestone
Community Note
Terraform Version
0.11.11
Provider version 1.59.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The IAM instance profile is created (potentially), but there's an error and the state for the role attachment isn't added
Actual Behavior
The IAM instance profile was created, but the role wasn't attached, and state thought it was. To fix, either have to modify state, or manually
aws iam add-role-to-instance-profile
Steps to Reproduce
iam:AddRoleToInstanceProfile
terraform apply
References
The text was updated successfully, but these errors were encountered: