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 c182453 commit 8701204Copy full SHA for 8701204
main.tf
@@ -1021,7 +1021,7 @@ resource "aws_egress_only_internet_gateway" "this" {
1021
}
1022
1023
resource "aws_route" "private_ipv6_egress" {
1024
- count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 ? local.nat_gateway_count : 0
+ count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 && local.len_private_subnets > 0 ? local.nat_gateway_count : 0
1025
1026
route_table_id = element(aws_route_table.private[*].id, count.index)
1027
destination_ipv6_cidr_block = "::/0"
0 commit comments