How can I transfer a Route 53 domain from one AWS account to another AWS account using the AWS CLI?

Last updated: 2020-06-02

How can I transfer an Amazon Route 53 domain from one AWS account to another AWS account using the AWS Command Line Interface (AWS CLI)?

Short Description

You can transfer a domain from one AWS account to another AWS account at no cost. The transfer does not affect the renewal date or contact information for the domain name registration.

Resolution

  1. Confirm that you're using the latest version of the AWS CLI. For more information, see Installing the AWS CLI.
  2. Confirm that you have the following required IAM user permissions to perform the transfer:
    route53domains:TransferDomainToAnotherAwsAccount
    route53domains:RejectDomainTransferFromAnotherAwsAccount
    route53domains:CancelDomainTransferToAnotherAwsAccount
    route53domains:AcceptDomainTransferFromAnotherAwsAccount
  3. Transfer the domain (for example, "example.com") from Account A to Account B using the transfer-domain-to-another-aws-account API.
  4. Account B must accept the transfer of the domain using the accept-domain-transfer-from-another-aws-account API. After Account B accepts the transfer, you can manage the domain from Account B.
    Note: If Account B doesn't accept the transfer within three days, the transfer request is cancelled.

When you transfer a domain from one AWS account to another, Route 53 doesn't transfer the hosted zone that's associated with the domain. DNS resolution isn't affected if the domain and hosted zone are owned by separate accounts. As a result, transferring the hosted zone is optional. For more information, see Migrating a hosted zone to a different AWS account.