-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 Client VPN resources: Always time out before resource is ready #15680
Comments
Hi @janschumann 👋 There have been adjustments to the |
Hi @bflad , I have the similar issue when creating It would be better if such resources could have timeout block enabled. We could handle the timeout depend on actual need. |
The general reason for not having customizable timeouts is that unless operators have some controlling factor to how long the operation can take, we have generally seen it better to fix these timeouts for everyone rather than leaving it up for operators to discover/guess. This approach has worked well across much of the Terraform AWS Provider codebase for years to better the user experience. The EC2 Client VPN Administrator Guide and The source code for them is in the |
After further investigation, the timeout will need to be increased base on number of subnets you need to associated. For example, I have to associate 4 subnets, aws will need at least 4 * 10 min to create all of them and set status to |
Thanks @yang-hubbox I will test this again with a build from the master branch |
Works for me with a build from master. This issue can be closed. |
Getting the same behavior. Using the following Terraform version and provider: Applying two network associations:
|
Can confirm the same on the following: Terraform is v0.13.5
|
My workaround was to create a single resource for each association and daisy chain depends_on statements. You still have the 10min timeout for the association, but they have to run in serial now and that seems to give a better chance of success:
However, I am now getting a new error:
Notice that |
Any update on this issue? Still running into the timeouts. |
This has been released in version 3.20.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! |
@anGie44 @lw-kaijparo @connor-tyndall I currently still encounter |
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! |
I would like to contribute a fix for this, if you accept this as a bug. But one question: Would I simply add the
&schema.ResourceTimeout
schema config, or do I also have to implementresource.Retry
?Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The resources should implement custom
&schema.ResourceTimeout
schema options to be able to provide custom timeouts.Actual Behavior
The resources take a while to become ready. The always error out and the corresponding resources are not added to the state.
The text was updated successfully, but these errors were encountered: