Skip to content

Commit a8372a2

Browse files
committed
fixed az issue
1 parent 1bd9028 commit a8372a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/complete-vpc-with-vpn/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ module "vpc" {
9191
flow_log_cloudwatch_log_group_skip_destroy = true
9292
flow_log_cloudwatch_log_group_retention_in_days = 90
9393
flow_log_cloudwatch_log_group_kms_key_arn = module.kms.key_arn #Enter your kms key arn
94-
}
94+
}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module "vpc" {
6464
version = "5.2.0"
6565
name = format("%s-%s-vpc", var.environment, var.name)
6666
cidr = var.vpc_cidr # CIDR FOR VPC
67-
azs = [for n in range(0, local.azs) : data.aws_availability_zones.available.names[n]]
67+
azs = var.availability_zones
6868
use_ipam_pool = var.ipam_enabled ? true : false
6969
ipv4_ipam_pool_id = var.ipam_enabled && var.create_ipam_pool ? aws_vpc_ipam_pool.ipam_pool[0].id : null
7070
ipv4_netmask_length = var.ipam_enabled ? var.ipv4_netmask_length : null

0 commit comments

Comments
 (0)