[Seoul 영역 오픈 축하] CLI를 통해 AWS에서 제공하는 영역을 확인하는 방법

2547 단어 AWS

Seoul Le John


Tokyo 구역은 ap-northeast-1입니다.
Seoul Le John은 ap-northeast-2라고 합니다.

cli에서 확인할 때ec2 describe-regions 사용

$ aws describe-regions
{
    "Regions": [
        {
            "RegionName": "eu-west-1",
            "Endpoint": "ec2.eu-west-1.amazonaws.com"
        },
        {
            "RegionName": "ap-southeast-1",
            "Endpoint": "ec2.ap-southeast-1.amazonaws.com"
        },
        {
            "RegionName": "ap-southeast-2",
            "Endpoint": "ec2.ap-southeast-2.amazonaws.com"
        },
        {
            "RegionName": "eu-central-1",
            "Endpoint": "ec2.eu-central-1.amazonaws.com"
        },
        {
            "RegionName": "ap-northeast-2",
            "Endpoint": "ec2.ap-northeast-2.amazonaws.com"
        },
        {
            "RegionName": "ap-northeast-1",
            "Endpoint": "ec2.ap-northeast-1.amazonaws.com"
        },
        {
            "RegionName": "us-east-1",
            "Endpoint": "ec2.us-east-1.amazonaws.com"
        },
        {
            "RegionName": "sa-east-1",
            "Endpoint": "ec2.sa-east-1.amazonaws.com"
        },
        {
            "RegionName": "us-west-1",
            "Endpoint": "ec2.us-west-1.amazonaws.com"
        },
        {
            "RegionName": "us-west-2",
            "Endpoint": "ec2.us-west-2.amazonaws.com"
        }
    ]
}

jq에서만 영역 얻기

$ aws ec2 describe-regions | jq '.Regions[].RegionName'

"eu-west-1"
"ap-southeast-1"
"ap-southeast-2"
"eu-central-1"
"ap-northeast-2"
"ap-northeast-1"
"us-east-1"
"sa-east-1"
"us-west-1"
"us-west-2"

URL을 직접 입력하여 사용 가능(=′;`=) 확인


https://ap-northeast-2.console.aws.amazon.com/console/home?region=ap-northeast-2#

좋은 웹페이지 즐겨찾기