Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 14, 2022
1 parent 6b9f489 commit 608deb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpc-transit-gateway-association/routing.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ data "aws_ec2_managed_prefix_list" "tgw_ipv4" {

resource "null_resource" "vpc_attachment_exists" {
triggers = {
vpc_attachment = one(aws_ec2_transit_gateway_vpc_attachment.vpc_attachment[*].id)
vpc_attachment = var.transit_gateway_routing_type == "self" ? aws_ec2_transit_gateway_vpc_attachment.vpc_attachment[0].id : ""
}
}

Expand Down

0 comments on commit 608deb7

Please sign in to comment.