-
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
[BUG] aws_route with conditional target to use nat_gateway_id or transit_gateway_id #13079
Comments
Verified that the same problem occurs with Terraform 0.11 (and |
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
0.12.24
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
if enable_nat_gateway is true it should create the route for destination 0.0.0.0/0 with the nat_gateway_id. If it is false it should use the supplied tgw_id instead.
Actual Behavior
The plan output correctly shows the intended changes.
Running apply will fail because of
In our case we switched an existing system from enable_nat_gateways = true, to enable_nat_gateways = false. Plan output was correct, but above error happened. We were able to solve the problem by manually changing the route in the UI, the next terraform plan was then empty, because of the refresh.
Steps to Reproduce
terraform apply
Important Factoids
none
References
none
The text was updated successfully, but these errors were encountered: