DEV Community

Asanka Boteju
Asanka Boteju

Posted on

1

AWS Cross-Region S3 Bucket Replication

Image description

👋 Cross-Region Replication

AWS S3 Cross-Region replication enables you to sync your files from a source S3 Bucket to a destination S3 Bucket, You can make use of this feature for your Business's compliance needs or to reduce the latency for users who connect from other regions to access content from your applications.

Let's walk through the steps to set up S3-Cross Region replication now

  • Log into your AWS Console and navigate to the S3 Bucket section.

  • Create two S3 Buckets, One as your source S3 Bucket and the other one as your destination S3 Bucket as shown below.

Image description

Next, make sure to enable versioning as a precaution to prevent any files from getting overwritten In case you upload the same content mistakenly again.

Image description

  • As shown below, Give a name for the Replication Rule.

  • Then, in the Rule Scope section choose Apply to all the objects in the Bucket. This will make sure all objects you upload to the destination bucket will get replicated to the destination bucket.

  • Now, choose the destination S3 Bucket where you would want your content to be replicated.

Image description

Image description

Image description

Then in the IAM role section, allow the console to create an IAM role for you. Alternatively, if you already have an existing IAM role with the required permissions then you can pick that too.

Image description

We are done with the setup now and it's time to test to make sure the contents are getting replicated to the destination.

  • Go to your source S3 Bucket and upload a file.

  • Then open the destination S3 Bucket to see the replicated content. (see the image below)

Image description

🙌 Good Job! You have finally implemented the S3 Cross-Region Replication.

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay