Skip to content

How do I use DataSync to transfer data to or from a cross-account Amazon S3 location?

2 minute read
1

I want to use AWS DataSync to transfer data in one AWS account to an Amazon Simple Storage Service (Amazon S3) bucket in another account.

Resolution

Prerequisites:

To use DataSync to transfer data across accounts, complete the following steps:

  1. For the IAM role in the source account to access the bucket in the destination account, update the S3 bucket policy in the destination account.
  2. Deactivate the access control lists (ACLs) for your destination bucket.
  3. Create the DataSync source location for the S3 bucket that owns the data.
    Note: You can also use DataSync to transfer data from an Amazon Elastic File System (Amazon EFS) file system or an Amazon FSx file system.
  4. From the source account, use AWS CloudShell to create the DataSync destination location.
    Note: You can't create cross-account locations in the DataSync console.
  5. Create and run the DataSync task.
    Note: For transfers between one AWS Region and another, create the task in the source account in the same Region as the destination bucket.

To monitor your tasks, check the DataSync console.

Related information

How to use AWS DataSync to migrate data between Amazon S3 buckets

AWS OFFICIALUpdated 7 months ago
7 Comments

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

AWS
MODERATOR
replied 3 years ago

I think this post needs to be updated to match the documentation provided in https://docs.aws.amazon.com/datasync/latest/userguide/tutorial_s3-s3-cross-account-transfer.html Otherwise it is a bit misleading.

replied a year ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

AWS
MODERATOR
replied a year ago

Source S3 location: Source Account, Source Region, Source account IAM role Destination S3 location: Source Account, Destination Region, Source account IAM role (this role must be updated in destination bucket policy as well). Task location: Source Account, Destination Region

OR

Source S3 location: Destination Account, Source Region, Destination account IAM role (this role must be updated in source bucket policy as well). Destination S3 location: Destination Account, Destination Region, Destination account IAM role . Task location: Destination Account, Source Region

AWS
replied a year ago

Just done a test: cross-account + cross-region S3-to-S3 DataSync replication also works with the DataSync task in the destination account, destination bucket region (in addition to the task running in source account's bucket destination region, as described in the AWS documentation tutorial).

AWS
replied a year ago

The corrected article was updated on 19 May 2025. Please disregard above comments regarding inaccuracy.

AWS
replied a year ago