Skip to content

Commit

Permalink
fix: sort az name
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Gerlach <[email protected]>
Signed-off-by: ugmuka <[email protected]>
  • Loading branch information
ugmuka and mgerlach authored Sep 13, 2023
1 parent dd90cf5 commit 7e5acdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ data "aws_availability_zones" "available" {
}
}

locals {
az_names = sort(data.aws_availability_zones.available.names)
}

resource "aws_subnet" "public" {
count = var.create_networking_config ? length(var.public_subnet_cidrs) : 0
cidr_block = var.public_subnet_cidrs[count.index]
Expand Down

0 comments on commit 7e5acdc

Please sign in to comment.