Skip to content

Commit

Permalink
fix: Create the same number of IPv6 egress only gateway routes as the…
Browse files Browse the repository at this point in the history
… number of NAT gateways that are enabled/created (terraform-aws-modules#1059)
  • Loading branch information
wiseelf authored Apr 6, 2024
1 parent 47e101d commit 77df552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 77df552

Please sign in to comment.