diff --git a/terraform/vpc.tf b/terraform/vpc.tf index 67f29f3..07ffff6 100644 --- a/terraform/vpc.tf +++ b/terraform/vpc.tf @@ -11,6 +11,7 @@ resource "aws_subnet" "public_subnet" { vpc_id = aws_vpc.vpc.id cidr_block = "10.0.1.0/24" map_public_ip_on_launch = true + availability_zone = var.availability_zone tags = { Name = var.subnet-name }