-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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 Role creation race stil present in spot instance requests #3554
Comments
@stadeltobi can you confirm which version of the AWS provider you are running? It does look like the |
@bflad thanks for getting back to me! It's version 1.10.0 of the aws provider. And you're probably right: in my setup, the error is thrown exactly 15 seconds after attempting to create the respective |
Nice - let's bump that up to a minute to match other retry logic 😄 Would you feel comfortable submitting a PR? No acceptance test changes required. |
sure, why not :) |
increase timeout in spot instance creation to 1 min - fix #3554
PR above has been merged and will release in v1.11.0 of the AWS provider, likely releasing next week. Of course you're more than welcome to try out a custom local build too. 😉 |
I'll do that; thanks a lot for the quick response and the help. |
So now I did (built c56c678, so a few commits after the PR was merged). Works like a charm. Thanks again 😄 |
This has been released in version 1.11.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Hi all, we recently started seeing this happening again, on provider version |
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! |
This issue was originally opened by @stadeltobi as hashicorp/terraform#17457. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform v0.10.2
...
Additional Context
I'm having the equivalent issue that is described in hashicorp/terraform#15341 when, instead of trying to create an aws_instance, I use a aws_spot_instance_request.
The same error ("Invalid Parameter Value") is thrown, so I'm assuming that the race condition described above was fixed for regular (on-demand) instances still prevails for spot_instance_requests.
Also, the workaround suggested by @spanktar makes the problem go away.
The problem goes away if I switch the spot request resource with an aws_instance resource, using the exact same parameters (except for the ones like spot_price that don't apply for aws_instance
References
The text was updated successfully, but these errors were encountered: