Amazon S3 to AWS Step Functions using Amazon EventBridge

S3 → EventBridge Rule → Step Functions

How to create an EventBridge rule with S3 as the event source and Step Functions as target.

This sample project demonstrates how you can trigger an execution in Step Functions state machine when an object is created in an S3 bucket .
When you uploads an object to the newly created S3 bucket, this will send an `Object Created` event to EventBridge, based on the EventBridge rule, the state machine is executed
This pattern deploys one Step Functions state machine, one S3 bucket, one EventBridge rule.

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

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Created by:

Trinh Vo

Trinh Vo

Trinh is an Associate Solutions Architect at AWS Vietnam.

Follow on LinkedIn