-
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
Client VPN route timeout on route delete #16645
Comments
👍 |
Whenever you look into this, I'm seeing issues when creating the route, too. It seems you need to wait until after the ClientVpnAssociation becomes active before trying to create the route.
Running EDIT resource "aws_ec2_client_vpn_route" "route" {
# ...
depends_on = [aws_ec2_client_vpn_network_association.association]
} |
@lukeyeager we have an explicit |
Two things to do here:
|
This functionality has been released in v4.0.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 am still seeing this bug even in v4.0.0 Nvm: found the custom timeout block https://www.terraform.io/language/resources/syntax#operation-timeouts |
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 v0.12.29.
aws provider v3.20.0
Affected Resource(s)
aws_ec2_client_vpn_route
Terraform Configuration Files
Debug Output
Error: error deleting client VPN route "cvpn-endpoint-072473af39699d210,subnet-032aeab9ad7021d8f,172.36.0.0/16": timeout while waiting for resource to be gone (last state: 'deleting', timeout: 1m0s)
Panic Output
Expected Behavior
VPN route should be deleted.
Actual Behavior
It timeouts after 1 minute, due to timeout too low in the code. It should be 5-10 mins at least.
Steps to Reproduce
terraform apply
Important Factoids
It's not happening all the time, just sometimes.
Here is the source code line which needs to be fixed (other client vpn resources are already with an increased timeout)
terraform-provider-aws/aws/internal/service/ec2/waiter/waiter.go
Line 171 in dddf99b
Should be a quick fix
The text was updated successfully, but these errors were encountered: