-
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_route -> Error: error reading Route for Route Table (rtb-0823xxxxxxxxxxxxxx) with destination (156.x.x.x/xx): couldn't find resource #19405
Comments
@chadp123 Thanks for raising this issue. |
We create plan and then apply that plan as part of a CI process. So it's the apply where route az_dx2 is first being created. The resource is created on the aws side but not reflected in the state. I should note that we applied the terraform to two accounts our nonprod/prod. There are 3 private subnets these routes are applied to based on our count variable. In nonprod one of the route tables faced this issue -> module.vpc.aws_route.az_csg_dx2[1] Generating a new plan would produces a plan that indicates it will create the routes. I imported the resources in order to resolve. |
This functionality has been released in v3.47.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! |
On my side, I still get the error erratically, since the 3.47.0 provider. I use the official VPC module: https://github.com/terraform-aws-modules/terraform-aws-vpc, with a public and private subnet. So far, rolling back to 3.46.0 appears to solve the issue. EDIT: no, issue still exist with |
Unfortunately I'm still seeing this issue also. I opened #19985 to track this again, since closed issues won't get any attention. |
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 cli - 0.12.21
aws provider - 3.37.0
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Limited to relevant config and obfuscated cidr.. Our VPC is a /24
Debug Output
Panic Output
Expected Behavior
Added the az_dx2 resource expecting the creation of the additional route.
Actual Behavior
The route is created as expected but the terraform failed with:
Seems to be last subnet in our list of three - timeout?
Error: error reading Route for Route Table (rtb-0823xxxxxxxxxxx) with destination (156.x.0.0/16): couldn't find resource
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
References
Looks similar although not exact the the following issues:
The text was updated successfully, but these errors were encountered: