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 helpaws route53domains transfer-domain-to-another-aws-account helpDetermine the DOMAIN_NAME and TARGET_AWS_ACCOUNT.
Initiate the transfer
Section titled “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
Section titled “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
Section titled “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