DEV Community

Cover image for How to enable AWS S3 replication between Global AWS Region and AWS China
Yaroslav Yarmoshyk
Yaroslav Yarmoshyk

Posted on

1

How to enable AWS S3 replication between Global AWS Region and AWS China

Recently I was struggling to enable S3 replication from China to EU region and I made it work using the Data Transfer Hub.

Actually it is not an AWS managed solution. It consists of the number of AWS resource such as EC2, SQS, Lambda functions and DynamoDB table.

I didn't need a fancy UI so I used the simplified s3-plugin approach

It is well documented so there is not much to add, however I'd like to outline couple of points:

  1. You need to deploy the stack into global region.
  2. The IAM user has to be created in China.
  3. The entire solution is automated in Cloudformation.
  4. The DataTransferS3Stack.template didn't work for me. There is something wrong with IAM policy on line #1866. Everything worked out without this resource.

The actual resource composition diagram is the following:
Data Transfer Hub AWS resources

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs