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

bre*_*top 2 amazon-s3 amazon-web-services amazon-route53 aws-cli

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

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

我正在使用以下命令转移域

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
Run Code Online (Sandbox Code Playgroud)

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

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "route53domains:*",
            "Resource": "*"
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

并且还有AdministratorAccessAWS 托管策略。

确保我可以与 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

我不确定我哪里出错了。

Joh*_*ein 9

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