Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iam_instance_profile state issue when missing iam:AddRoleToInstanceProfile permission #7792

Closed
tbarrella opened this issue Mar 2, 2019 · 2 comments · Fixed by #16188
Closed
Labels
bug Addresses a defect in current functionality. service/iam Issues and PRs that pertain to the iam service.
Milestone

Comments

@tbarrella
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

0.11.11
Provider version 1.59.0

Affected Resource(s)

  • aws_iam_instance_profile

Terraform Configuration Files

resource "aws_iam_instance_profile" "test" {
  name_prefix = "test"
  role        = "..."
}

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

  1. Make sure Terraform credentials don't have the permission iam:AddRoleToInstanceProfile
  2. terraform apply

References

@bflad bflad added the service/iam Issues and PRs that pertain to the iam service. label Mar 4, 2019
@aeschright aeschright added the needs-triage Waiting for first response or review from a maintainer. label Jun 24, 2019
@aeschright aeschright added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 6, 2019
@github-actions github-actions bot added this to the v3.28.0 milestone Feb 11, 2021
@ghost
Copy link

ghost commented Feb 12, 2021

This has been released in version 3.28.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 14, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/iam Issues and PRs that pertain to the iam service.
Projects
None yet
3 participants