| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
The intrinsic function Fn::GetAZs returns an array that lists all Availability Zones for
the specified region.
Because customers have access to different Availability Zones, the intrinsic function
Fn::GetAZs enables template authors to write templates that adapt to the calling user's
access. This frees you from having to hard-code a full list of Availability Zones for a specified region.
"Fn::GetAZs" : "region"
The name of the region for which you want to get the Availability Zones.
You can use the AWS::Region pseudo parameter to specify the region in
which the stack is created. Specifying an empty string is equivalent to specifying
AWS::Region.
The list of Availability Zones for the region.
{ "Fn::GetAZs" : "" }{ "Fn::GetAZs" : "us-east-1" }For both of the previous examples, AWS CloudFormation evaluates Fn::GetAZs to the following array—assuming that the user has created the stack in the us-east-1 region:
[ "us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d" ]