Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

EventBridge to Step Functions

Created with SnapEventBridgeStep 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 Visit the GitHub repo for this pattern.

Download

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.

Adrian Hesketh

Presented by Adrian Hesketh

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