From 1eb0daab0d3073002414f057330b47f2fa048db2 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Mon, 11 Dec 2023 08:52:20 -0500 Subject: [PATCH] Update main.tf --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 2fb68f4..0f642b9 100644 --- a/main.tf +++ b/main.tf @@ -119,7 +119,7 @@ resource "aws_route" "this" { route_table_id = each.key destination_cidr_block = try(each.value.ipv6_support, false) ? null : each.value["cidr"] destination_ipv6_cidr_block = try(each.value.ipv6_support, false) ? each.value["cidr"] : null - transit_gateway_id = aws_ec2_transit_gateway.this[0].id + transit_gateway_id = each.value["tgw_id"] } resource "aws_ec2_transit_gateway_route_table_association" "this" {