Skip to content

Commit

Permalink
Ignore changes to propagating_vgws of private routing table (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelaferreira authored and antonbabenko committed Jan 3, 2018
1 parent fd9f2fb commit ed3b426
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}

################
Expand Down

0 comments on commit ed3b426

Please sign in to comment.