VPC Peering routes should be preserved if they don't change.
3h4x opened this issue · comments
marcin commented
Describe the Feature
Current code for adding routes is based on count
terraform-aws-vpc-peering/main.tf
Lines 51 to 67 in 47c6e51
Changing tags can possible result in changing count order and removal of actually using peering routing.
Expected Behavior
If matching pattern tag for a route is changed then only associated route table for this exact peering should be changed.
Use Case
It's possible that downtime will happen during terraform apply when tags will be changed on route.
Describe Ideal Solution
aws_route
inside this module should use for_each
which would prevent temporary routing changes