-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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_instance creation failed due to missed IAM role #4306
Comments
This seems like it may be related to #4235 and the eventual consistency of IAM. The discussion there suggests we wait for the instance profile to exist as part of instance creation, so it might be that we need additional logic there to check for roles having not been added yet. |
Hey @partamonov – I've seen this error myself, a handful of times last week, but not since. I've tried several times just this morning and everything has worked. Are you able to reliably reproduce it? As @jen20 said, it's (very likely) an eventual consistency thing with IAM. #4235 is similar to something we'll go with in the near future, assuming the aws SDK incorporates some need hooks into the waiters they provide. Using the waiters as they are now can give the appearance that Terraform is hung, which is less than ideal. I'm going to close this for now. Please let me know if this is something you can reliably reproduce, and maybe we'll reopen for another look. Thanks! |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Rather often I'm getting aws_instance creation error, due to it is pointing to profile with empty roles.
Version is 0.6.8 and this I saw before
Error message:
What I have.
IAM module with following inside:
And aws instance is created in module
The text was updated successfully, but these errors were encountered: