-
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
Existing AWS routing table configuration is always being registered as a change #5686
Comments
Hi @dictvm 👋 Sorry you're running into trouble here. Can you please provide the |
@bflad sure, of course: https://gist.github.com/dictvm/334f1e4d8f3d889d2a46a40b571cd59a |
According to the
If you adjust this configuration (assuming that's where the route {
cidr_block = "${data.terraform_remote_state.us-tf.ivx_vpc_cidr}"
gateway_id = "${aws_vpc_peering_connection.us_west_1.id}"
} To the below, the difference should go away: route {
cidr_block = "${data.terraform_remote_state.us-tf.ivx_vpc_cidr}"
vpc_peering_connection_id = "${aws_vpc_peering_connection.us_west_1.id}"
} Let us know, thanks! |
Hey @bflad, thanks for the proposed solution. I was on vacation until today and now I verified that it works as intended. Thank you for the explanation as well. 👍 |
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
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
No panic occured.
Expected Behavior
Once the changes have been applied by Terraform, creating a new plan shouldn't show any changes to the state.
Actual Behavior
Everytime a plan is being created, the routing table is being modified, even though no new changes have been made to underlying terraform resources.
Steps to Reproduce
Have an existing AWS VPC Routing Table. Modify the table to resemble the changes from the pasted hcl-snippet.
terraform plan -out prod_routing.plan
terraform apply -f prod_routing.plan
terraform plan -out prod_routing.plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: