Difference between revisions of "Data Source: aws availability zones"
Jump to navigation
Jump to search
(Created page with " Category:Terraform") |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones | ||
+ | Selection can be made by [[state]] or by [[filter]]. | ||
+ | |||
+ | Official example, Only Availability Zones (no Local Zones): | ||
+ | [[data]] "aws_availability_zones" "example" { | ||
+ | filter { | ||
+ | name = "opt-in-status" | ||
+ | values = ["opt-in-not-required"] | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | [[data.aws_availability_zones.current]] is object with 10 attributes | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[aws_ami]]</code> | ||
+ | * [[random_string]] | ||
+ | |||
+ | == See also == | ||
+ | * {{AZ}} | ||
+ | * {{Terraform data sources}} | ||
[[Category:Terraform]] | [[Category:Terraform]] | ||
+ | [[Category:AWS]] |
Latest revision as of 11:20, 25 October 2024
Selection can be made by state or by filter.
Official example, Only Availability Zones (no Local Zones):
data "aws_availability_zones" "example" { filter { name = "opt-in-status" values = ["opt-in-not-required"] } }
data.aws_availability_zones.current is object with 10 attributes
Related[edit]
See also[edit]
Advertising: