Posted On: Apr 9, 2023
Amazon S3 adds a new Amazon CloudWatch metric to quickly diagnose and correct S3 Replication configuration issues. 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 Amazon 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 Amazon Web Services Regions, including the Amazon Web Services China (Beijing) Region, operated by Sinnet, and the Amazon Web Services China (Ningxia) Region, operated by NWCD. 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 or S3 Replication FAQs.