Skip to content

Commit

Permalink
fix ipv6 enable (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeofguenter authored and antonbabenko committed Nov 27, 2019
1 parent 4ef2e7f commit 3b87102
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 @@ -912,7 +912,7 @@ resource "aws_route" "private_nat_gateway" {
}

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)
destination_ipv6_cidr_block = "::/0"
Expand Down

0 comments on commit 3b87102

Please sign in to comment.