Skip to content

Commit

Permalink
Fixed #177 - public_subnets should not always be validated
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Oct 6, 2018
1 parent 598fbfa commit 67c1e9f
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 @@ -161,7 +161,7 @@ resource "aws_subnet" "public" {
count = "${var.create_vpc && length(var.public_subnets) > 0 && (!var.one_nat_gateway_per_az || length(var.public_subnets) >= length(var.azs)) ? length(var.public_subnets) : 0}"

vpc_id = "${local.vpc_id}"
cidr_block = "${var.public_subnets[count.index]}"
cidr_block = "${element(concat(var.public_subnets, list("")), count.index)}"
availability_zone = "${element(var.azs, count.index)}"
map_public_ip_on_launch = "${var.map_public_ip_on_launch}"

Expand Down

0 comments on commit 67c1e9f

Please sign in to comment.