Created
March 31, 2021 19:28
-
-
Save mhmdio/6b0402570f81141576822ef57973bf89 to your computer and use it in GitHub Desktop.
terraform aws_availability_zones
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_availability_zones" "available" {} | |
locals { | |
az_length = length(data.aws_availability_zones.available) > 3 ? 3 : length(data.aws_availability_zones.available) | |
azs = slice(data.aws_availability_zones.available.names, 0, local.az_length) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment