Amazon S3 to Amazon EventBridge to AWS Step Functions

Amazon S3 → Amazon EventBridge → Step Functions

Uses EventBridge to trigger a Step Functions workflow each time an object is uploaded to S3.

The SAM template deploys an Amazon S3 bucket that publishes events to Amazon EventBridge, and sets up an AWS Step Functions workflow to show how to consume these events via an EventBridge rule. It deploys the the IAM resources required to run the application.
EventBridge consumes events directly from S3 buckets when the NoticationConfiguration is enabled, as shown in the template.
The template contains a sample Step Functions workflow that detects cats in images uploaded to the Amazon S3 bucket using Amazon Rekognition's DetectLabels API. Replace this workflow with your own state machine.

< 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-sfn

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Pascal Vogel

Pascal Vogel

Pascal Vogel is a Solutions Architect at Amazon Web Services (AWS).