Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terraform-community-modules/tf_aws_availability_zones_cfn
Get availability zones for your AWS region/account from Cloudformation
https://github.com/terraform-community-modules/tf_aws_availability_zones_cfn
Last synced: 5 days ago
JSON representation
Get availability zones for your AWS region/account from Cloudformation
- Host: GitHub
- URL: https://github.com/terraform-community-modules/tf_aws_availability_zones_cfn
- Owner: terraform-community-modules
- License: apache-2.0
- Created: 2016-03-16T08:33:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-31T08:52:25.000Z (about 8 years ago)
- Last Synced: 2024-08-01T13:18:22.287Z (3 months ago)
- Language: HCL
- Size: 19.5 KB
- Stars: 5
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-terraform - tf_aws_availability_zones_cfn - Gets availability zones for your AWS region/account from Cloudformation. (Community Modules / Miscellaneous)
README
# tf_aws_availability_zones_cfn
Terraform module to get the AZs you have access to programatically
using cloudformation.## Outputs:
* primary - The primary AZ (always defined)
* secondary - The secondary AZ (always defined)
* tertiary - The third AZ (may not be defined!)
* list_all - A comma seperated list of all AZs## Example:
In your terraform code, add something like this:
module "az" {
source = "github.com/terraform-community-modules/tf_aws_availability_zones_cfn"
}resource "aws_subnet" "primary-front" {
availability_zone = "${module.az.primary}"
}# CREDIT
The idea (and most of the code) for this module was produced by _gozer_ in #terraform on irc.
# LICENSE
Apache2 - See the included LICENSE file for more details.