HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/examples/ec2/describe-availability-zones.rst
**To describe your Availability Zones**

The following example ``describe-availability-zones`` displays details for the Availability Zones that are available to you. The response includes Availability Zones only for the current Region. In this example, it uses the profiles default ``us-west-2`` (Oregon) Region. ::

    aws ec2 describe-availability-zones

Output::

    {
        "AvailabilityZones": [
            {
                "State": "available",
                "OptInStatus": "opt-in-not-required",
                "Messages": [],
                "RegionName": "us-west-2",
                "ZoneName": "us-west-2a",
                "ZoneId": "usw2-az1",
                "GroupName": "us-west-2",
                "NetworkBorderGroup": "us-west-2"
            },
            {
                "State": "available",
                "OptInStatus": "opt-in-not-required",
                "Messages": [],
                "RegionName": "us-west-2",
                "ZoneName": "us-west-2b",
                "ZoneId": "usw2-az2",
                "GroupName": "us-west-2",
                "NetworkBorderGroup": "us-west-2"
            },
            {
                "State": "available",
                "OptInStatus": "opt-in-not-required",
                "Messages": [],
                "RegionName": "us-west-2",
                "ZoneName": "us-west-2c",
                "ZoneId": "usw2-az3",
                "GroupName": "us-west-2",
                "NetworkBorderGroup": "us-west-2"
            },
            {
                "State": "available",
                "OptInStatus": "opt-in-not-required",
                "Messages": [],
                "RegionName": "us-west-2",
                "ZoneName": "us-west-2d",
                "ZoneId": "usw2-az4",
                "GroupName": "us-west-2",
                "NetworkBorderGroup": "us-west-2"
            },
            {
                "State": "available",
                "OptInStatus": "opted-in",
                "Messages": [],
                "RegionName": "us-west-2",
                "ZoneName": "us-west-2-lax-1a",
                "ZoneId": "usw2-lax1-az1",
                "GroupName": "us-west-2-lax-1",
                "NetworkBorderGroup": "us-west-2-lax-1"
            }
        ]
    }