Copy data cross account cross region using DataSync


Hi AWS, I am trying to copy data from S3 bucket in one region in source account to another S3 bucket in another region in destination account. I was able to create the DataSync locations successfully for both source and destination, but now when I am creating the task to test whether I am able to copy data from source bucket to destination bucket across accounts and regions I am not able to do and while I checked the DataSync Log Group, it is giving the error Execution exec-056dfghgdxxxxxx finished with status Unable to connect to S3 endpoint.

I know it is possible to transfer data across accounts for the same region using DataSync, but is it possible in case of different regions as well. I am really confused. Please help

Details in case you get stuck because of the description provided above:

  • Source account: 111111111111
  • Destination account: 222222222222
  • Source bucket: datasync-source-bucket
  • Destination bucket: datasync-dest-bucket
  • Source region: ca-central-1
  • Destination region: eu-west-2
profile picture
asked 8 months ago654 views
3 Answers

Here is an updated tutorial in the AWS DataSync documentation for transferring data cross account and cross region with AWS DataSync.

This tutorial notes that you must create and start your DataSync task from the region of the destination S3 location. In this case the task would be created and run in the destination region: eu-west-2

Step 6.2
To avoid a network connection error, you must start your DataSync task from the Region of the destination location.
answered 8 months ago


You have a step-by-step implementation for cross-region and cross-account with Datasync in this blog post:

Just modify their values to yours to get your system to. work



profile pictureAWS
answered 8 months ago

Ensure the data sync agent has access to the internet via a NAT gateway so that it can access the S3 endpoints in the different regions.

The agent needs to be on a private subnet which has a route to a NAT gateway.

profile picture
answered 8 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.

Guidelines for Answering Questions