diff --git a/12-Terraform-Remote-State-Storage/01-ekscluster-terraform-manifests/c3-02-vpc-module.tf b/12-Terraform-Remote-State-Storage/01-ekscluster-terraform-manifests/c3-02-vpc-module.tf index 6c13caa6..4bb09021 100644 --- a/12-Terraform-Remote-State-Storage/01-ekscluster-terraform-manifests/c3-02-vpc-module.tf +++ b/12-Terraform-Remote-State-Storage/01-ekscluster-terraform-manifests/c3-02-vpc-module.tf @@ -12,7 +12,8 @@ module "vpc" { # VPC Basic Details name = local.eks_cluster_name cidr = var.vpc_cidr_block - azs = data.aws_availability_zones.available.names + # azs = data.aws_availability_zones.available.names #comment out as it causes error availability zone has no capcity,need to add more zone so added code below + azs = ["us-east-1a", "us-east-1b", "us-east-1c","us-east-1d","us-east-1f"] public_subnets = var.vpc_public_subnets private_subnets = var.vpc_private_subnets @@ -52,4 +53,4 @@ module "vpc" { } # Instances launched into the Public subnet should be assigned a public IP address. map_public_ip_on_launch = true -} \ No newline at end of file +}