Skip to content

Commit 3b87102

Browse files
lifeofguenterantonbabenko
authored andcommitted
fix ipv6 enable (#340)
1 parent 4ef2e7f commit 3b87102

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
@@ -912,7 +912,7 @@ resource "aws_route" "private_nat_gateway" {
912912
}
913913

914914
resource "aws_route" "private_ipv6_egress" {
915-
count = var.enable_ipv6 ? length(var.private_subnets) : 0
915+
count = var.create_vpc && var.enable_ipv6 ? length(var.private_subnets) : 0
916916

917917
route_table_id = element(aws_route_table.private.*.id, count.index)
918918
destination_ipv6_cidr_block = "::/0"

0 commit comments

Comments
 (0)