How to import route 53 hosted zone to another account?

0

I have my production AWS account but I want to import or sync my route53 hosted zine to a backup or secondary aws account as a backup.

profile picture
질문됨 5달 전302회 조회
2개 답변
0

Hello,

You can login to production account and run the below command to get list of records in the hosted zone in a file.

aws route53 list-resource-record-sets --hosted-zone-id hosted-zone-id > path-to-output-file For hosted-zone-id, specify the ID of the hosted zone that you got in step 2 of this procedure. For path-to-output-file, specify the directory path and file name that you want to save the output in.

Then, edit the format of file as per step 4 in https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html#hosted-zones-migrating-edit-records.

Now, you can run below command in secondary account to add the records here. aws route53 change-resource-record-sets --hosted-zone-id id-of-new-hosted-zone --change-batch file://path-to-file-that-contains-records

For detailed info: refer to step 3-6 in file: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html#hosted-zones-migrating-create-records

AWS
Ananya
답변함 5달 전
profile picture
전문가
검토됨 5달 전
  • Agree with this approach. I have performed this before without an issue.

0

You can use AWS CLI to export your R53 records

cli53 is a open source tool that provides import and export from BIND format and simple command line management of Route 53 domains.

AWS
전문가
Mike_L
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠