Transferring a domain between AWS accounts

Transfer a domain between AWS accounts

Published: Wednesday, 9 February 2022

Transferring a domain between AWS accounts.

Before starting, confirm you have access to both AWS accounts.

Use the AWS CLI for the transfer.

For help see

aws route53domains help
aws route53domains transfer-domain-to-another-aws-account help

Determine the DOMAIN_NAME and TARGET_AWS_ACCOUNT.

Initiate the transfer

From the source AWS account, run

aws --region us-east-1 route53domains transfer-domain-to-another-aws-account --domain-name ${DOMAIN_NAME} \
    --account-id ${TARGET_AWS_ACCOUNT}

It will output an OperationId and Password

{
    "OperationId": ".......",
    "Password": "....."
}

Accept the transfer

From the receiving or target AWS account, run

aws --region us-east-1 route53domains accept-domain-transfer-from-another-aws-account \
    --domain-name ${DOMAIN_NAME} --password ${PASSWORD}

where ${PASSWORD} is copied from the previous step.

Login to the AWS console and check the domain has been transferred.

Troubleshooting

If you see an error

Could not connect to the endpoint URL: "https://route53domains.eu-central-1.amazonaws.com/"

Remember to specify --region us-east-1 as mentioned in aws-cli issue 1354

References