Migrate Route53 Domain to another AWS Account

Last updated
May 20, 2024 12:54 PM
summary
Migrate Route53 Domain to another AWS account
date
Dec 18, 2022
type
Post
tags
aws
domain
status
Published
slug
route53-domain-migration
To prepare for the new year’s operation of the business I needed to migrate domains from one AWS account to another and although it was a trivial task here’s a quick how to for future reference:

Original AWS Account

In the original account, make the transfer request using the domain name you want to transfer, and the account number of the destination account like this
aws route53domains transfer-domain-to-another-aws-account --domain-name "projectpoolparty.com" --account-id 123456789012
 
If successful, the above command will return something similar to the following with a password that is needed to accept the transfer request.
{
    "OperationId": "b0941665-846b-4108-b43f-69dff248b84d",
    "Password": "thepassword"
}

Destination AWS Account

Taking thepassword value from the previous step, we flip over to the destination account and run the following
aws route53domains accept-domain-transfer-from-another-aws-account --domain-name "projectpoolparty.com" --password "thepassword"
 
That’s it. All done. You’re registered domain has now been migrated to the new AWS account. Be to point the domain registration at a hosted zone somewhere.