-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
AWS Provider 4.9 AWS IAM instance profile not updated on manually changed AWS IAM role #24540
Comments
Hey @bashoKa 👋 Thank you for taking the time to raise this! So that we have all of the necessary information in order to investigate, would it be possible to supply debug logs (redacted as needed) as well? |
Hi Sure, just running it with debug mode? best |
Hey @bashoKa 👋 That's correct. That can be done by setting an environment variable of |
One thing I noticed preparing the trace: |
We've hit this again. These are the steps to manually reattach a role to an instance profile: # list all the instance profiles in the account
$ aws iam list-instance-profiles
# reattach the role required to the instance profile
$ aws iam add-role-to-instance-profile --instance-profile-name "instance1.foo.example.com_20220617071515949800000001" --role-name instanceRole I think this is a simple lifecycle issue caused by a boundary evaluation bug (> should be >=). Can someone please look at the code I linked in #25646 and confirm? |
I can confirm that this is issue there on provider My observation is, The following error shows up if the desired capacity has a deviation at the time when running the TF apply. But, if the desired capacity has no diff, then it won't throw errors. Errors:
This was reported in the past and fixed. Here are the ticket numbers. But, it seems it needs a bit more tuning. |
Just hit this bug in provider version 5.9.0 |
Hitting this bug in |
This issue exists in version 5.4.0. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.43.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. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
terraform -v
Terraform v1.1.9
on darwin_arm64
Affected Resource(s)
Related
Terraform Configuration Files
Actual Behavior
terraform apply
terraform apply
terraform apply
will update the instance profileSteps to Reproduce
terraform apply
terraform apply
terraform apply
will update the instance profileImportant Factoids
References
Similar bug happened already before:
Thanks guys for your investigation and please let me know if you need further details.
The text was updated successfully, but these errors were encountered: