aws_route thinks route_table_id is a modifyable resource - its not #1841
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
Terraform 0.9.8
This is super important, as terraform basically leaves routes hanging around which completely screws with your networking setup.
A plan now makes this a modify step (~) - it should be a destroy and create step (-/+)
An apply will error saying it could not find the old routes, (its looking for them on the wrong wroute table), and will then remove them from the state file(!!!!) - the next plan/apply will just apply them on the new route table, leaving the old routes behind on the old route table... this will break your entire networking model and potentially the security of your networks.
Really hope its been fixed since terraform 0.9.8 but havent had the chance to test yet - screwing up your networking is a pretty horrible thing for terraform to do!
If you're wondering why the route table might change, its because it may well come from a data source, and you've decided to change the VPC peering from A=>B, to A=>C - which is a common thing to do in e.g. blue-green type deployments
The text was updated successfully, but these errors were encountered: