Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

S3 to EventBridge to Lambda

Created with SnapAmazon S3Amazon EventBridgeAWS LambdaEventEvent

Creates an S3 bucket that publishes events to EventBridge that are routed to Lambda.

This pattern contains a sample AWS Cloud Development Kit (AWS CDK) template for creating an AWS S3 bucket with AWS EventBridge notifications turned on
All S3 events in this bucket is sent to AWS EventBridge
This CDK template also deploys a AWS Lambda function which will process the event sent to AWS EventBridge and create a tag for the S3 object that was created
An EventBridge rule is also created to send only the Object Created event of the bucket to the Lambda function

< Back to all patterns


GitHub icon Visit the GitHub repo for this pattern.

Download

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

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: cdk destroy..
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Arun Thangaraj

Presented by Arun Thangaraj

Arun is a Cloud Application Architect at AWS Professional Services based out of Dallas, TX.

Follow on LinkedIn