Skip to content

How can I use DataSync to transfer data cross-account from an Amazon EFS file system from one account to an Amazon S3 bucket in another account ?

0

Instead of manually mounting EFS to an EC2 instance, I want to use DataSync's native EFS location type for direct access, reducing complexity and improving security. How can I use DataSync to transfer data cross-account from an Amazon EFS file system from one account to an Amazon S3 bucket in another account without installing DataSync agent on EC2?

AWS
asked 6 months ago165 views
1 Answer
0

Hello valued customer.

To transfer data cross-account from an Amazon EFS file system in one account to an Amazon S3 bucket in another account using AWS DataSync follow the following steps:

1/ In the source account, create a DataSync source location for the EFS file system.

2/ Create an IAM role in the source account that grants DataSync permission to write to the destination S3 bucket in the other account.

3/ Configure the destination S3 bucket in the target account with a bucket policy granting access to the source account’s DataSync role.

4/ Create a DataSync destination location for the cross-account S3 bucket using AWS CLI (console does not support cross-account destination creation).

5/ Create and start the DataSync task in the source account to transfer data from EFS to S3.

Ensure network connectivity and correct IAM permissions between accounts for the transfer to succeed.

Please review the following links for additional examples. I hope this information helps you! https://aws.amazon.com/blogs/storage/transferring-file-data-across-aws-regions-and-accounts-using-aws-datasync/ https://outshift.cisco.com/blog/transferring-data-with-aws-data-sync

AWS
answered 6 months 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.