将域从一个 AWS 账户转移到另一个 AWS 账户

Transfer domain from one AWS account to another AWS account

我正在尝试使用 AWS CLI 将域名从一个 AWS 账户转移到另一个 AWS 账户。当我尝试 t运行sfer 域时,出现以下错误:

Connect timeout on endpoint URL: "https://route53domains.eu-west-1.amazonaws.com/"

我正在使用以下命令来 t运行sfer 域

aws route53domains transfer-domain-to-another-aws-account --domain-name <value> --account-id <value> --profile personal

我检查了 aws 配置文件,看起来不错。它看起来像这样:

[profile personal]
aws_access_key_id = somekey
aws_secret_access_key = somesecretkey
region = us-west-2

我还确保用户拥有正确的权限。用户有以下权限

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "route53domains:*",
            "Resource": "*"
        }
    ]
}

并且还有 AdministratorAccess AWS 托管策略。

确保我可以与 AWS 通信。我 运行 一个简单的命令 aws s3 ls --profile personal 就可以了。 AWS 返回 S3 的内容。

我安装的AWS CLI版本是 aws-cli/2.0.18 Python/3.7.4 Darwin/19.4.0 botocore/2.0.0dev22

我不确定哪里出错了。

您需要指定 --region us-east-1,因为 Amazon Route 53 是一项全球服务。