Move AWS Resources to another Account

amazon ec2amazon-web-services

We are running various AWS resources currently in an account namely but not limited to :

EC2 (we can copy AMIs), RDS,VPC,IAM, S3, SNS, CloudWatch, CloudFront,Auto Scaling

we now want to move everything to another AWS Account. How Do I move all?

I need to get the S3 Buckets synced and so does CloudFront.

I was trying to get hold off CloudFormation and generated a CloudFormer Template. Then I imported the template to new AWS Account and Launched a new Stack out of this Template.

What's next ??

I can't see EC2 Servers created, nor S3, security group, EBS, nothing is there on the new account.

How do I move all the resources in one go ?

Thank you.
Sandeep

Best Answer

If you build your entire infrastructure with CloudFormation you could more easily replicate it, even in another account.

You still need to deal with data migration, which will be different depending on your deployment setup.

If you use configuration management most if not all of your OS can be replicated in your other account too.

While AWS does have a method of reverse engineering a CloudFormation template based on your current environment I've never tried it, sounds like you should give it a go.

The aws cli has commands to move s3 data "aws s3 sync s3://from s3://to". You may need to export or otherwise share other data like RDS and SNS.

Related Topic