Passer au contenu

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

demandé il y a un an504 vues

1 réponse
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

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.