Skip to content

Commit

Permalink
fix vpc az_count value
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Glotov committed Mar 4, 2024
1 parent 663f497 commit 46d14ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/aws-vpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
az_count = length(var.azs)
az_count = length(var.azs) - 1
cidr_subnets = [for cidr_block in cidrsubnets(var.cidr, 2, 2, 2, 2) : cidrsubnets(cidr_block, 4, 4, 4, 4)]
private_subnets = chunklist(local.cidr_subnets[0], local.az_count)[0]
public_subnets = chunklist(local.cidr_subnets[1], local.az_count)[0]
Expand Down

0 comments on commit 46d14ad

Please sign in to comment.