Cross-Region Replication Monitor (CRR Monitor) automatically checks the replication status of Amazon S3 objects across all AWS Regions in a customer's account, and provides near real-time metrics and failure notifications to help customers identify failures and troubleshoot problems.
The Guidance provisions the necessary AWS services to monitor and view replication status, including AWS Lambda, Amazon CloudWatch, Amazon Simple Notification Service (Amazon SNS), AWS CloudTrail, Amazon Simple Queue Service (Amazon SQS), and Amazon DynamoDB, and offers an option to use Amazon Kinesis Data Firehose to archive replication metadata in Amazon S3.
CRR Monitor automatically monitors the replication status of your Amazon S3 objects across all accounts in your AWS Regions. The diagram below presents the architecture you can can build using the example code on GitHub.
Cross-Region Replication Monitor architecture
When an object is added to the source Amazon S3 bucket, AWS CloudTrail logs the event data and initiaties an Amazon CloudWatch event rule that publishes a message to the Amazon SNS topic in the source bucket’s region. An Amazon SQS queue subscribed to the Amazon SNS topic receives the message for processing.
After the object replication to the destination bucket is successful, status information is sent back to the Amazon SQS queue. A CloudWatch event automatically invokes an AWS Lambda function to read messages from the SQS queue and update an Amazon DynamoDB table with the replication status.
Near real-time metrics
Analyze solution data
Browse our library of AWS Solutions to get answers to common architectural problems.
Find AWS Partners to help you get started.
Find prescriptive architectural diagrams, sample code, and technical content for common use cases.