-
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
Error finding route after creating it: Unable to find matching route for Route Table (<rtb_id>) and destination CIDR block (<destionation_cidr>) #12073
Comments
When I check the logs from the initial
Any idea why it would fail to find the route that it just created? |
I see one more issue which describes pretty much the same - #10666. |
More of the same issue - #338 and hashicorp/terraform#8542 |
It looks like increasing the creation timeout for the aws_route fixes/mitigates this issue:
The reported error is not intuitive:
@bflad, @radeksimko, @catsby does it makes sense to improve the error? |
I've run in to this issue in the past and discovered the workaround in #338 and mentioned again here (setting create timeout to 5m). But I'm back because I'm experiencing it again even with the elevated timeout. From the timestamps in our logs it appears that the timeout isn't being honored, as I get the Issue #10666 may be related (timeouts on route creation) |
This has been released in version 3.34.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! |
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! |
Community Note
Terraform Version
terraform version -
0.12.9
provider-aws version -
2.26.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
We quite often hit
RouteAlreadyExists
issue duringaws_route
creation. We also hit this as part of creation of new VPCs where obviously theaws_route
does not exists.terraform apply
reports:We end up with
aws_route
created in AWS but not persistent in theterraform.state
. And the thing requires manual intervention to clean up theaws_route
or import it to theterraform.state
asterraform apply
will always try to create it and will fail withRouteAlreadyExists
.Steps to Reproduce
It does not happen consistently and because of this I cannot provide clear steps to reproduce.
I checked for existing issues and I found #520 (back from 2017) where the same issue was reported with the statement that there is a data race during route creation.
Important Factoids
References
The text was updated successfully, but these errors were encountered: