005 Availability Zoneを調べる

調べる事

本項で使用する環境変数

環境変数
AVAILABILITY_ZONE 本項で設定

Availability Zoneを調べる

$ aws ec2 describe-availability-zones

結果

{
    "AvailabilityZones": [
        {
            "State": "available", 
            "RegionName": "ap-northeast-1", 
            "Messages": [], 
            "ZoneName": "ap-northeast-1a"
        }, 
        {
            "State": "available", 
            "RegionName": "ap-northeast-1", 
            "Messages": [], 
            "ZoneName": "ap-northeast-1b"
        }, 
        {
            "State": "available", 
            "RegionName": "ap-northeast-1", 
            "Messages": [], 
            "ZoneName": "ap-northeast-1c"
        }
    ]
}

今回は、ap-northeast-1aを環境変数に設定します。

OS X

$ export AVAILABILITY_ZONE="ap-northeast-1a"

Windows

$ set AVAILABILITY_ZONE=ap-northeast-1a