Migrate resources to another account

0

Hello, on account A i hosted some resources that belong to account B that i want to migrate

as inventory on account A, i have the following resources:

a hosted zone for domain A 
a hosted zone for domain B
many ec2 instances for domaine A
1 x ec2 instance for domain B (for CRM)
a static website for domain B in a S3 bucket
a website that belong to domain B but hosted on a server that belong to domain A

my idea was to start by hosted zone

  1. recreate hosted zone for domain B on account B and copy records from account A to account B
  2. modify DNS to use this new zone

for static website

  1. copy S3 bucket enable public access and publish to cloudfront with SSL
  2. modify DNS on account A and B to use this new resource

for ec2 website

  1. on account A, create an AMI of the webserver and share it with account B
  2. on account B, deploy ec2 from AMI
  3. copy data on this new instance
  4. modify DNS on account A and B to use this new resource

and finally for CRM server

  1. on account A, stop CRM server
  2. on account A, create an AMI of the CRM server share it with account B
  3. on account B, deploy server from AMI
  4. start server
  5. modify DNS on account A and B to use this new resource

things looks easy but im stuck with the newly created hosted zone because i cannot create A alias record on account B that use aws resources which are still on account A at the moment so im not sure what i have to do. maybe should i start to migrate ec2 instances and static website but i can be in trouble when i will modify DNS to use hosted zone in account B i d like to avoid at maximum a loss of connection

what should i do ?

1 Answer
1

Hello,

Thank you for reaching out to us. I understand that you want to migrate resources from your AWS account A to another AWS account B and you are stuck in this process while creating alias record for the newly created hosted zone in account B that use resources which are still in account A at the moment. Please feel free to correct me in case I have misunderstood your concern.

Yes, you are right you have to migrate your EC2 instances, static website and other AWS resources from your account A to account B and then create alias record on account B. However, there may be some downtime during this process as you will be updating DNS records which may take sometime to get propagated across the globe.

For additional information on migrating resources between AWS accounts please refer to below documentation. This documentation addresses the migration of Compute services(EC2 instances), Storage services(S3 bucket) and Database resources with all necessary backups and prerequisites before migration.

[+] https://aws.amazon.com/blogs/architecture/migrate-resources-between-aws-accounts/

Moving further please refer to AWS documentation[1] for detailed steps for migrating a hosted to a different AWS account.

I sincerely hope this helps. If the suggestions above do not help resolve the issue, we might need to troubleshoot based on your configurations. Could you please create a support case instead so we may discuss details on your resource configurations?

Please do not post any sensitive information over re:Post since this is a public platform.

As always, feel free to reach back with any further questions or concerns in the meantime!

Reference Links:

[1] Migrating a hosted zone to a different AWS account : https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions