From ed3b426e1cc1c17a0d3f81728302484149d0b454 Mon Sep 17 00:00:00 2001 From: Miguel Ferreira Date: Wed, 3 Jan 2018 20:28:28 +0100 Subject: [PATCH] Ignore changes to propagating_vgws of private routing table (#50) --- main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.tf b/main.tf index 14c2c5584..f482a5811 100644 --- a/main.tf +++ b/main.tf @@ -81,6 +81,12 @@ resource "aws_route_table" "private" { propagating_vgws = ["${var.private_propagating_vgws}"] tags = "${merge(var.tags, var.private_route_table_tags, map("Name", format("%s-private-%s", var.name, element(var.azs, count.index))))}" + + lifecycle { + # When attaching VPN gateways it is common to define aws_vpn_gateway_route_propagation + # resources that manipulate the attributes of the routing table (typically for the private subnets) + ignore_changes = ["propagating_vgws"] + } } ################