Skip to content

Commit 77df552

Browse files
authored
fix: Create the same number of IPv6 egress only gateway routes as the number of NAT gateways that are enabled/created (#1059)
1 parent 47e101d commit 77df552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ resource "aws_egress_only_internet_gateway" "this" {
10211021
}
10221022

10231023
resource "aws_route" "private_ipv6_egress" {
1024-
count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 ? local.len_private_subnets : 0
1024+
count = local.create_vpc && var.create_egress_only_igw && var.enable_ipv6 ? local.nat_gateway_count : 0
10251025

10261026
route_table_id = element(aws_route_table.private[*].id, count.index)
10271027
destination_ipv6_cidr_block = "::/0"

0 commit comments

Comments
 (0)