From 3b6191972d92a00439fd7068433fad0a61dae45a Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 14 Oct 2022 11:56:51 -0400 Subject: [PATCH] fix --- vpc-transit-gateway-association/routing.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/vpc-transit-gateway-association/routing.tf b/vpc-transit-gateway-association/routing.tf index 2e58d43..8663443 100644 --- a/vpc-transit-gateway-association/routing.tf +++ b/vpc-transit-gateway-association/routing.tf @@ -39,7 +39,6 @@ data "aws_ec2_managed_prefix_list" "tgw_ipv4" { # pick the first prefix list found, either NAME or NAME.ipv4 resource "aws_route" "gateway_ipv4" { - count = var.transit_gateway_routing_type == "self" ? 1 : 0 for_each = var.transit_gateway_routing_type == "self" ? module.routing_attachment_ipv4[0].private_route_table_ids : {} route_table_id = each.value