Commit 77df552a authored by wiseelf's avatar wiseelf Committed by GitHub

fix: Create the same number of IPv6 egress only gateway routes as the number...

fix: Create the same number of IPv6 egress only gateway routes as the number of NAT gateways that are enabled/created (#1059)
parent 47e101dc
......@@ -1021,7 +1021,7 @@ resource "aws_egress_only_internet_gateway" "this" {
}
resource "aws_route" "private_ipv6_egress" {
count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 ? local.len_private_subnets : 0
count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 ? local.nat_gateway_count : 0
route_table_id = element(aws_route_table.private[*].id, count.index)
destination_ipv6_cidr_block = "::/0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment