LoginSignup
0
0

More than 1 year has passed since last update.

AWS CLI route53domainsのlist-domainsでドメインが取得できずにハマった話

Last updated at Posted at 2021-06-01

環境

$ aws --version
=> aws-cli/2.2.7 Python/3.8.8 Darwin/18.7.0 exe/x86_64 prompt/off

原因

regionus-east-1じゃなかったから

NG:

$ aws route53domains list-domains                                                                                                                                                                               
=> Could not connect to the endpoint URL: "https://route53domains.ap-northeast-1.amazonaws.com/"

OK:

$ aws route53domains list-domains --region us-east-1
=> {
    "Domains": [
        {
            "DomainName": "example1.com",
            "AutoRenew": true,
            "TransferLock": false,
            "Expiry": "2021-06-01T09:53:28+09:00"
        },
        {
            "DomainName": "example2.jp",
            "AutoRenew": true,
            "TransferLock": true,
            "Expiry": "2022-06017T00:00:00+09:00"
        },
    ]
}

詳細

ドメインを取得する際のregionus-east-1が固定らしい。。。
公式のExamplesに小さく書いてたが、この注釈の書き方はあまりにも分かりにくい。。。。

To list the domains that are registered with the current AWS account

The following list-domains command lists summary information about the domains that are registered with the current AWS account.

This command runs only in the us-east-1 Region. If your default region is set to us-east-1, you can omit the region parameter.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0