-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Interpolated (count.index) route_table route re-create every run #3269
Comments
Figured out the issue - AWS and the provider both allow for NAT gateways to be used in the gateway_id field. However, when aws provisions the resource, it is changed to the nat_gateway field, causing a diff in the state file. Modifying the config to
Solved the issue |
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! |
Hey there, I am seeing an issue while using an interpolated "gateway_id" for a route table route block. The configuration is below, but every time terraform runs a plan, it fails to recognize the existing route block, instead clearing the current route block and re-creating the route with the same information.
Terraform Version
v0.11.2
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform plan should have interpreted the interpolated route as identical and not changed the route table and associated routes
Actual Behavior
Terraform clears and re-creates the route with interpolated gateway data.
E.G.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan/apply
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: