Amazon S3 to Amazon EventBridge to Amazon SNS

Amazon S3 → Amazon EventBridge → Amazon SNS

Publish events directly from S3 to EventBridge and send notifications to SNS when an object is created.

This sample project demonstrates how to use Amazon SNS to deliver notifications to subscribers for objects uploaded to an S3 bucket.
This pattern uses AWS CDK to setup an S3 bucket that publishes events to Amazon EventBridge. When an object is uploaded to the bucket, an EventBridge rule triggers and a SNS notification is sent to subscribers.
This pattern deploys one S3 Bucket, SNS Topic, EventBridge rule and a Lambda function which is used internally by CDK to apply configuration notifications on the bucket

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/s3-eventbridge-sns-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Rajesh Raghu

Rajesh Raghu

Cloud Support Engineer @ AWS

Follow on LinkedIn