- Newest
- Most votes
- Most comments
Would suggest take a look at this:
- Review and update KMS key policies to include the replication role.
- Ensure replication rules cover all prefixes.
- Check replication metrics and logs for errors.
- Manually re-upload or trigger replication for missed objects if needed.
When you're experiencing partial replication between S3 buckets, there are several potential causes to investigate:
-
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. The folders missing in your destination bucket might contain only objects that were created before you configured replication.
-
KMS key permissions: Since you're using different KMS CMKs for encryption in both buckets, ensure that your replication role has the necessary permissions to use both keys. The replication role needs
kms:GenerateDataKeyandkms:Encryptpermissions for the destination KMS key. Check your KMS key policies to verify these permissions are properly configured. -
Replication configuration filters: Your replication rule might have filters (prefixes or tags) that exclude certain folders. Verify that your replication configuration includes all the folders you want to replicate.
-
Replication time: Large objects or a large number of objects may take longer to replicate. Check if the missing folders contain particularly large files or a high volume of objects.
-
Replication status: You can check the replication status of individual objects in the source bucket to see if replication is pending, failed, or completed.
-
IAM permissions: Ensure that the IAM role used for replication has sufficient permissions to read from all folders in the source bucket and write to the destination bucket.
To resolve this issue, I recommend:
- Verifying your replication configuration settings
- Checking the IAM role permissions
- Ensuring proper KMS key policies are in place
- For pre-existing objects, consider using S3 Batch Replication to replicate them
If the missing folders contain only objects created before setting up replication, you'll need to use S3 Batch Replication or manually copy them to trigger replication.
Sources
S3 CRR Replication object versioning issue | AWS re:Post
Troubleshooting replication - Amazon Simple Storage Service
answered a year ago
Relevant content
asked 4 years ago
