Posted On: Apr 5, 2023
Amazon S3 adds a new Amazon CloudWatch metric that can be used to diagnose and correct S3 Replication configuration issues more quickly. The OperationFailedReplication metric, available in both the S3 console and in Amazon CloudWatch, gives you per-minute visibility into the number of objects that did not replicate to the destination bucket for each of your replication rules.
You can use Amazon CloudWatch alarms with this metric to notify you when failures occur, so that you can quickly take corrective action. For example, S3 Replication relies on permissions that are granted by customers via AWS Identity and Access Management (IAM) roles. If an IAM role is set up incorrectly, customers may see objects that do not replicate as expected, due to insufficient permissions. S3 Replication will mark these objects as failed, and will now generate a metric and alarm so that you can quickly correct your IAM role and reinitiate replication for the objects to keep your source and destination buckets in sync.
The new OperationFailedReplication metric is supported in all AWS Regions. To enable Amazon S3 Replication metrics, select Replication Metrics for your replication rule or enable S3 Replication Time Control (RTC). To learn more, visit the documentation, S3 Replication feature page, or S3 Replication FAQs.