Interview Prep/AWS/S3, EBS and EFS

S3 Cross-Region Replication is configured, but new objects show `ReplicationStatus: FAILED`.

AdvancedTroubleshootingS3, EBS and EFS
Answer

Likely causes → The replication role does not have s3:ReplicateObject on the destination, or the destination bucket policy does not allow the role (cross-account). Objects are SSE-KMS but the rule has no SseKmsEncryptedObjects or KMS permissions in the destination Region. Versioning is off on one side. Or Object Lock is in use without the right configuration.

Diagnose →

aws s3api get-bucket-replication --bucket src
aws s3api head-object --bucket src --key path/obj --query ReplicationStatus
aws s3api get-bucket-versioning --bucket dst
# enable replication metrics + S3 event notifications for s3:Replication:OperationFailedReplication

Fix →

  1. Fix the role permissions (source read, destination replicate, KMS decrypt on the source key and encrypt on the destination key)
  2. Fix the destination bucket policy for cross-account
  3. Re-replicate the failed and existing objects with S3 Batch Replication

Prevent → Turn on Replication Time Control metrics and alarm on OperationsFailedReplication.

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS