Skip to content

S3 CRR Replication object versioning issue

0

Hi, Can anyone help on the below. Thanks in advance.

I’m setting up Amazon S3 Cross-Region Replication (CRR) to replicate objects from a bucket in the us-east-1 region to another bucket in the us-west-2 region for disaster recovery. I’ve enabled versioning and set up the replication rules, but I’m noticing that not all objects are being replicated to the destination bucket. Some files appear in the destination, but others are missing. What could be causing certain objects not to replicate, and how can I ensure all my objects are successfully replicated to the target bucket?

Regards, sajeer

asked 2 years ago495 views

2 Answers
0
Accepted Answer

Hi,

You will guidance to troubleshoot your issue with S3 CRR in this KC article: https://repost.aws/knowledge-center/s3-troubleshoot-replication

It's most often an issue with permissions: all details in the article to define your IAM policies properly.

You may also want to read this article: https://www.resilio.com/blog/s3-replication-not-working

Best,

Didier

EXPERT

answered 2 years ago

0

There are several potential reasons why some objects might not be replicating in your S3 Cross-Region Replication (CRR) setup. Let's explore some possibilities and solutions:

  1. Pre-existing objects: Objects that existed in your source bucket before you set up the replication rule are not automatically replicated. S3 doesn't replicate objects retroactively. To replicate these pre-existing objects, you would need to use S3 Batch Replication or manually copy them to trigger replication.

  2. Replication configuration: Verify your replication configuration on the source bucket. Ensure that:

    • The destination bucket's ARN is correct
    • Any key name prefixes or tags you've specified are accurate
    • The replication rule status is set to "Enabled"
  3. Object size and replication time: The time it takes to replicate an object depends on factors like the distance between regions and the object size. Large objects may take longer to replicate. Check the replication status of the objects in question. If the status is "PENDING", S3 hasn't completed the replication yet.

  4. Replication failures: If an object's replication status is "FAILED", there might be issues with permissions or the replication configuration. Review your IAM roles and policies to ensure S3 has the necessary permissions to read from the source bucket and write to the destination bucket.

  5. Versioning: Ensure that versioning is enabled on both the source and destination buckets. Only new versions of objects created after enabling replication will be replicated.

  6. Encryption: If you're using server-side encryption with AWS KMS, make sure the IAM role has permissions to use the KMS keys in both regions.

To troubleshoot and ensure all objects are replicated:

  1. Use Amazon S3 replication metrics to monitor the progress and identify any issues.
  2. Check the replication status of individual objects in the source bucket.
  3. Review your replication configuration and IAM permissions.
  4. For objects that existed before setting up replication, consider using S3 Batch Replication to replicate them.
  5. If issues persist, you may want to enable Amazon EventBridge for S3 replication events to get detailed notifications about replication failures.

By systematically checking these aspects, you should be able to identify and resolve the cause of the incomplete replication.
Sources
Set up cross-account, cross-Region, encrypted replication for an Amazon S3 bucket | AWS re:Post
Setting up replication - Amazon S3 on Outposts
Managing your replication - Amazon S3 on Outposts
Replicating existing objects with Batch Replication - Amazon Simple Storage Service

answered 2 years 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.