Migrate AWS resources from one AWS Account to another AWS Account

0

Hi AWS, we have a setup in an existing AWS Account comprising S3 buckets, DynamoDB tables, and EFS. These are all running actively. They need to be migrated to a new AWS Account.

One of the approach I am thinking of is to use Resource Managed policies as S3, EFS and DynamoDB use the concept of resource managed policies to grant cross account access.

Please acknowledge.

3 Answers
1

Hello.

S3 allows you to migrate data to another AWS account using cross-account replication.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-walkthrough-2.html

DynamoDB also has several ways to migrate data to another AWS account.
Just choose your migration method based on your use case and you're good to go.
https://repost.aws/knowledge-center/dynamodb-cross-account-migration

With EFS, you can use VPC peering to connect a VPC in another account and then use the sync command to move data from EC2, and like DynamoDB, you can also use AWS Backup to perform cross-account copy.
It should also be possible to use DataSync.
https://repost.aws/knowledge-center/access-efs-across-accounts
https://aws.amazon.com/about-aws/whats-new/2019/05/aws-datasync-now-supports-efs-to-efs-transfer/?nc1=h_ls

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
1

Hi,

You may want to follow this blog post for guidance re. cross-account migration of AWS resources: https://aws.amazon.com/blogs/architecture/migrate-resources-between-aws-accounts/

Best,

Didier

profile pictureAWS
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
0

Hello,

Migrating resources from one AWS account to another is a common task, and there are some straightforward ways to do it, especially for S3, DynamoDB, and EFS. Here's how you can handle each:

S3 Buckets: You can use S3 Cross-Account Replication to copy objects from the S3 bucket in your current account to a bucket in the new account. This way, any new data added to the source bucket is automatically replicated to the destination bucket. Here's a step-by-step guide on setting up cross-account replication: AWS S3 Cross-Account Replication. https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-walkthrough-2.html

DynamoDB Tables: You have several options for DynamoDB, like exporting the table to S3 and importing it into the new account or using the AWS Data Pipeline. Another method is to use the DynamoDB cross-account migration tool. Each method has its pros and cons, so pick the one that best fits your needs. For more details, check this out: DynamoDB Cross-Account Migration. https://repost.aws/knowledge-center/dynamodb-cross-account-migration

EFS: For EFS, you can use AWS DataSync to transfer data between EFS file systems in different accounts. Alternatively, if you already have EC2 instances set up, you can mount the EFS file system from the old account using VPC peering and then copy the files over. Here's a guide on EFS cross-account access: Access EFS Across Accounts. https://repost.aws/knowledge-center/access-efs-across-accounts

These methods will help you move your resources without too much hassle. If you want a more automated and managed solution, consider using AWS Backup to handle backups and cross-account recovery. This approach is secure and works well for all three services.

Take a look at the AWS DataSync feature too, which can simplify moving large amounts of data, especially for EFS: AWS DataSync for EFS. https://aws.amazon.com/about-aws/whats-new/2019/05/aws-datasync-now-supports-efs-to-efs-transfer/?nc1=h_ls

These should cover all you need to get started with migrating your AWS resources between accounts

profile picture
EXPERT
answered a month 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