Commit 3b87102b authored by Günter Grodotzki's avatar Günter Grodotzki Committed by Anton Babenko

fix ipv6 enable (#340)

parent 4ef2e7f3
...@@ -912,7 +912,7 @@ resource "aws_route" "private_nat_gateway" { ...@@ -912,7 +912,7 @@ resource "aws_route" "private_nat_gateway" {
} }
resource "aws_route" "private_ipv6_egress" { resource "aws_route" "private_ipv6_egress" {
count = var.enable_ipv6 ? length(var.private_subnets) : 0 count = var.create_vpc && var.enable_ipv6 ? length(var.private_subnets) : 0
route_table_id = element(aws_route_table.private.*.id, count.index) route_table_id = element(aws_route_table.private.*.id, count.index)
destination_ipv6_cidr_block = "::/0" 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