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 83187ed commit 50af905Copy full SHA for 50af905
main.tf
@@ -1073,7 +1073,7 @@ resource "aws_egress_only_internet_gateway" "this" {
1073
}
1074
1075
resource "aws_route" "private_ipv6_egress" {
1076
- count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 && local.len_private_subnets > 0 ? local.nat_gateway_count : 0
+ count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 && local.len_private_subnets > 0 ? ( var.single_nat_gateway ? local.len_private_subnets : local.nat_gateway_count ) : 0
1077
1078
route_table_id = element(aws_route_table.private[*].id, count.index)
1079
destination_ipv6_cidr_block = "::/0"
0 commit comments