Amazon S3 to AWS Step Functions with Amazon EventBridge Rule

Amazon S3 → Amazon EventBridge → AWS Step Functions

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

This sample project demonstrates invoking an AWS Step Functions state machine when an object is created in an Amazon S3 bucket.
When you upload an object to the S3 bucket, an `Object Created` event is sent to EventBridge. Based on the EventBridge rule, the state machine is invoked.
This pattern deploys one Step Function 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-terraform

Deploy

terraform initterraform apply


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy

Created by:

Oriol Matavacas

Oriol Matavacas

Oriol Matavacas is a Sr. Solutions Architect at AWS based in Barcelona. Oriol primarily supporting customers on the journey to the Cloud. He enjoys building new solutions with scalability, availability and easy to maintain by using serverless.

Follow on LinkedIn