Amazon EventBridge to AWS Step Functions

EventBridge → Step Functions

Create an EventBridge rule that triggers a Step Functions workflow

This pattern creates an EventBridge event bus and a Step Functions workflow. An EventBridge rules invokes the Step Functions target when a StartReminder event is published to the event bus.
Step Functions waits until the specified date before publishing a reminder event to the even bus using a Lambda function.
This pattern creates an IAM Role for the Lambda function that gives it permission to send to an EventBridge event bus that is created as part of the template.
Step Functions is also given permission to subscribe to EventBridge events on the newly created event bus.

< 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/cdk-eventbridge-stepfunction

Deploy

npm inpx cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: npx cdk destroy.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus".
3. You see a message confirming DELETE_COMPLETE.

Created by:

Adrian Hesketh

Adrian Hesketh

Adrian Hesketh works at Infinity Works in the UK, helping organisations with digital transformation and service delivery.