We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 663f497 commit 46d14adCopy full SHA for 46d14ad
terraform/modules/aws-vpc/main.tf
@@ -1,5 +1,5 @@
1
locals {
2
- az_count = length(var.azs)
+ az_count = length(var.azs) - 1
3
cidr_subnets = [for cidr_block in cidrsubnets(var.cidr, 2, 2, 2, 2) : cidrsubnets(cidr_block, 4, 4, 4, 4)]
4
private_subnets = chunklist(local.cidr_subnets[0], local.az_count)[0]
5
public_subnets = chunklist(local.cidr_subnets[1], local.az_count)[0]
0 commit comments