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.