Difference between revisions of "Data Source: aws availability zones"

From wikieduonline
Jump to navigation Jump to search
 
(9 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 ==
 
== See also ==
 
* {{AZ}}
 
* {{AZ}}
 
+
* {{Terraform data sources}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]
 
[[Category:AWS]]
 
[[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: