Commit 19081397 authored by Anton Babenko's avatar Anton Babenko

Fixed broken 2.3.0

parent 06e59206
...@@ -248,7 +248,7 @@ resource "aws_route_table" "intra" { ...@@ -248,7 +248,7 @@ resource "aws_route_table" "intra" {
# Public subnet # Public subnet
################ ################
resource "aws_subnet" "public" { resource "aws_subnet" "public" {
count = var.create_vpc && length(var.public_subnets) > 0 && (false == var.one_nat_gateway_per_az || length(var.public_subnets)) >= length(var.azs) ? length(var.public_subnets) : 0 count = var.create_vpc && length(var.public_subnets) > 0 && (false == var.one_nat_gateway_per_az || length(var.public_subnets) >= length(var.azs)) ? length(var.public_subnets) : 0
vpc_id = local.vpc_id vpc_id = local.vpc_id
cidr_block = element(concat(var.public_subnets, [""]), count.index) cidr_block = element(concat(var.public_subnets, [""]), count.index)
......
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