diff --git a/vpc.tf b/vpc.tf index cd499ad..f253f02 100644 --- a/vpc.tf +++ b/vpc.tf @@ -10,7 +10,7 @@ resource "aws_subnet" "public" { cidr_block = var.public_subnet_cidrs[count.index] vpc_id = var.vpc_id map_public_ip_on_launch = true - availability_zone = count.index % 2 == 0 ? "${data.aws_availability_zones.available.names[0]}" : "${data.aws_availability_zones.available.names[1]}" + availability_zone = count.index % 2 == 0 ? data.aws_availability_zones.available.names[0] : data.aws_availability_zones.available.names[1] tags = merge({ Name = "mwaa-${var.environment_name}-public-subnet-${count.index}" }, var.tags)