S3 Cross-Region Replication

A guide to enabling Cross-Region Replication for an S3 bucket

This article aims to provide you with a comprehensive step-by-step guide to help you set up Cross-Region Replication in S3 and seamlessly replicate your data across buckets in a diverse set of regions. Please note that this replication can incur extra charges from AWS.

Steps to set up Cross-Region Replication in S3

You can implement Cross-Region Replication in S3 using the following steps:

STEP 1: Create the destination S3 bucket

  1. To start replicating data from your desired S3 bucket, you first need to log into the AWS management console for S3.

  2. Once youโ€™ve logged in, search for "S3" in the search bar. The S3 home page will open up on your screen.

  3. Click on the "Create a Bucket" option at the top right corner of your screen.

S3 Home Page
  1. Provide a unique name for the bucket, and select any region except the region where your Atlan bucket is deployed. (In this example, we've selected "us-east-1" since the Atlan bucket is in the "ap-south-1" region.)

  2. Enable versioning and server-side encryption.

  3. Add tags, if required.

โ€‹Create Dest S3 bucket - Part 1 Create Dest S3 bucket - Part 2โ€‹

STEP 2: Create an IAM role

Once the destination bucket is created successfully, it's time to create the IAM role that will be used for replication.

  1. Search for "IAM" in the search bar, and click on "IAM".

  2. Once the IAM homepage is open on your screen, click on "Role" in the side section.

  3. Click on "Create Role".

  4. In the next screen, click on "S3" and then "Next:Permissions".

Create IAM Role
  1. In the next screen, search for "S3" and select the "AmazonS3FullAccess" managed policy. Then click on "Next: Tags".

Create IAM Role
  1. Provide any tags, if required, and then click on "Next: Review".

Create IAM Role
  1. Provide a name for the role and add a description, then click on "Create Role".

Create IAM Role

STEP 3: Initialize Cross-Region Replication in S3

Once we have our destination bucket and role ready, we can move on to enabling Cross-Region Replication for the Atlan S3 bucket.

  1. Go to the S3 homepage, and select the Atlan S3 bucket.

  2. Switch to the Management tab, and click on "Create Replication Rule".

Create IAM Role
  1. Click on "Enable Bucket Versioning", and provide a name for the replication rule.

  2. Select "This rule applies to all objects in bucket" under the "Choose a rule scope" section.

Create IAM Role
  1. Under the "Destination" section, provide the name of the S3 bucket that you created in Step 1.

  2. Search and select the IAM role that you created in Step 2.

Create IAM Role
  1. Leave the other settings as default, and click on "Save".

Now you have Cross-Region Replication enabled for your Atlan bucket! This will be helpful for recovery in case of region or Availability Zone (AZ) failure.