Amazon EventBridge to AWS Step Functions

EventBridge → Step Functions

Create an EventBridge rule that triggers a Step Functions workflow

This pattern demonstrates running a Step Functions workflow using an EventBridge rule. The template creates a shell Step Functions workflow with a CloudWatch log group for error reporting. It is triggered on select EC2 instance state changes and branches based on the value.

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

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

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

Created by:

Bryson Tyrrell

Bryson Tyrrell

Staff Systems Development Engineer at Jamf.