From 89c2e5e0b2c110740b2f616a0197dcb390f24eb5 Mon Sep 17 00:00:00 2001 From: vainkop Date: Thu, 17 Nov 2022 13:16:39 +0300 Subject: [PATCH] fix: always diff in transit_gateway_default_route_table_association --- main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.tf b/main.tf index 600e26e..da4320f 100644 --- a/main.tf +++ b/main.tf @@ -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 },