-
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
provider/aws: iam_instance_profile not ready when TF creates the LaunchConfig of an ASG #2136
Comments
Hey @stefancocora – sorry to hear you ran into this. Can you share the configuration you used to reproduce this? Be sure to omit any secrets, and if possible trim the config down to the bare minimum needed to reproduce. Thank you! |
Same issue here. module.iam.aws_iam_instance_profile.instance-profile: Creation complete
|
@catsby I will post some TF config to test this in a couple of days when I'm back in the office. |
Since I've reported this bug I've migrated to terraform version
Terraform v0.5.3 I've created a github gist with:
...
Error creating launch configuration: ValidationError: Invalid IamInstanceProfile
How to use it:
I hope this is enough to allow you to test ! |
I've got the same issue here, my workaround is also to re-run Terraform. |
Dup of #2349. I know thats newer, but we have more discussion going on there. |
Not sure which issue to bring this up - but I am hitting this issue in Terraform v0.6.13.
|
After upgrading from 0.6.12 to 0.6.13 this issue appears and I have to downgrade.
|
Yep, I can confirm this, made me a sad panda, I have rolled back to 0.6.11 and the issue has gone away. Have also confirmed 0.6.14 has the same issue. We are using it on Mac installed via brew if that is of any use. |
I faced with same problem after updating from v0.6.11 to v0.6.14.
part of config:
log list after executed
Error disappears when second execute |
Hey folks, tracking the new bug and the incoming fix in #5862 |
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. |
I've finally hit this issue as well !
I'm on
which has been built 5 days after the PR #2037 was merged.
The above PR #2037 does not fix the issue for me.
Am I missing something obvious ?
When I apply all resources on the 1st run ( from scratch - no resources present ) TF fails because of the slow IAM propagation(see error output below)
When I apply the plan the 2nd time, naturally TF sees the resources that haven't been created ( 3 ASGs+LC ) and creates them since the IAM instance profile has propagated by the end of the first TF run.
Error output when creating all VPC resources in one run:
The text was updated successfully, but these errors were encountered: