aws_availability_zones

    0

    0

    lucycodes42

    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

    # State can be either: available, information, impaired, or unavailable
    data "aws_availability_zones" "available" {}
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.