Skip to content

Commit

Permalink
fix: always diff in transit_gateway_default_route_table_association
Browse files Browse the repository at this point in the history
  • Loading branch information
vainkop committed Nov 17, 2022
1 parent c155730 commit 89c2e5e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "this" {
transit_gateway_default_route_table_association = try(each.value.transit_gateway_default_route_table_association, true)
transit_gateway_default_route_table_propagation = try(each.value.transit_gateway_default_route_table_propagation, true)

# Workaround mentioned in https://github.com/terraform-aws-modules/terraform-aws-transit-gateway/issues/90
# Closes https://github.com/hashicorp/terraform-provider-aws/issues/8383#issuecomment-680847938
lifecycle {
ignore_changes = [
transit_gateway_default_route_table_association,
transit_gateway_default_route_table_propagation
]
}

tags = merge(
var.tags,
{ Name = var.name },
Expand Down

0 comments on commit 89c2e5e

Please sign in to comment.