# State can be either: available, information, impaired, or unavailable
      data "aws_availability_zones" "available" {}

      Terraform language logoaws_availability_zones

      Terraform snippets

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.