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