0
0
llucycodes42
data "aws_availability_zones" "information" {} data "aws_availability_zones" "impaired" {} data "aws_availability_zones" "unavailable" {}
The code creates three data arrays, one for each of the AWS availability zone types. The first two arrays, "available" and "information", are populated with True values if the zone is in the desired state, "available". The "impaired" array is populated with True values if the zone is in the impaired state, and the "unavailable" array is populated with True values if the zone is unavailable.
Shortcut: tf_aws_availability_zones
# State can be either: available, information, impaired, or unavailable
data "aws_availability_zones" "available" {}