Skip to content

Commit 46d14ad

Browse files
author
Max Glotov
committed
fix vpc az_count value
1 parent 663f497 commit 46d14ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/modules/aws-vpc/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
az_count = length(var.azs)
2+
az_count = length(var.azs) - 1
33
cidr_subnets = [for cidr_block in cidrsubnets(var.cidr, 2, 2, 2, 2) : cidrsubnets(cidr_block, 4, 4, 4, 4)]
44
private_subnets = chunklist(local.cidr_subnets[0], local.az_count)[0]
55
public_subnets = chunklist(local.cidr_subnets[1], local.az_count)[0]

0 commit comments

Comments
 (0)