We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89cd41c commit f70ec98Copy full SHA for f70ec98
main.tf
@@ -116,9 +116,10 @@ resource "aws_route" "this" {
116
tgw_id = x.tgw_id
117
} }
118
119
- route_table_id = each.key
120
- destination_cidr_block = each.value["cidr"]
121
- transit_gateway_id = each.value["tgw_id"]
+ 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
122
+ transit_gateway_id = each.value["tgw_id"]
123
}
124
125
resource "aws_ec2_transit_gateway_route_table_association" "this" {
0 commit comments