iTranslated by AI
Tips for Domain Transfer Between AWS Accounts
Overview
Although this is somewhat of a personal note, this is an operation log for using a domain acquired in AWS Route 53 with another account.
Specifically, I have summarized the steps from transferring a domain managed in Account A to Account B, and then enabling the use of a subdomain in a separate Account C.
Objectives
- Transfer the domain from Account A to Account B.
- Enable the use of the domain in Account C while Account B retains ownership.
- I want to use a subdomain in Account C.
- Create hosted zones in both Account B and Account C.
- Additionally, obtain a certificate with ACM.
Transferring the domain from Account A to Account B
First, we will perform the domain transfer process. You will need to perform operations in each account.
Tasks in the source AWS account (Account A)
- Check the domain to be transferred in Route 53 (ensure transfer lock is "Off" beforehand)
- Select "Transfer (OUT)" from domain details, then select "Transfer to another AWS account"
- Enter the ID of the destination account and click "Confirm"
- A password will be generated; copy it (to be entered in the destination account later)
Tasks in the destination AWS account (Account B)
- Confirm that the domain appears in the "Requests" section of Route 53
- Select "Accept" from "Actions", enter the previous password, and click the "Transfer domain" button
- It is successful if the domain is displayed in "Registered domains" of the destination account
Enabling domain usage in Account C while retaining ownership in Account B
Next are the tasks for the account that owns the domain and the account that wants to use it. Since you will need to switch between accounts, performing this on two screens might make it smoother.
Tasks in the domain-owning account (Account B) ①
- Create a hosted zone (*If you haven't performed the transfer mentioned above, it would have already been created when acquiring the domain, so you can skip this step)
- Copy the values from the hosted zone of the source account (Account A), excluding NS and SOA records
- Apply the NS record values of the created hosted zone via "Edit name servers" in the "Registered domains" details
Tasks in the domain-using account (Account C)
- Create a hosted zone (as above)
- Specify the "subdomain" for the domain name
- e.g.,
test.example.com
- Copy the NS record values from the created hosted zone
Tasks in the domain-owning account (Account B) ②
- Add an NS record to the hosted zone (use the NS record values copied above as they are)
Bonus (Obtaining a certificate with ACM)
- Select "Request certificate" from Certificate Manager in the domain-using account
- Enter the subdomain you want to use
- A record is added to the certificate list (status is "Pending validation")
- Open the details and click the "Create records in Route 53" button
- The CNAME records required for certificate validation will be automatically added to the hosted zone
- After waiting a while, the certificate status changes to "Issued"
Summary
In this article, I summarized the procedures for transferring a domain acquired in Route 53 to a different AWS account, and the operational steps for when the account that owns the domain is different from the one that uses it.
Since I performed these steps manually, it took about an hour in total, but using the CLI or similar tools could likely save more time.
I hope this information is helpful.
Discussion