Amazon SNS to AWS Step Functions with an Amazon EventBridge Pipe and Bus via CDK

SNS → EventBridge Pipes → Step Functions

Trigger a Step Functions workflow from SNS messages filtered via EventBridge Pipes, using a custom EventBus and Rule.

This pattern is designed to help connect producers that are submitting messages into SNS with EventBridge as a way to deliver those same events in a more configuration driven and scalable way. It also helps reduce load and needless code downstream by leveraging AWS EventBridge Pipes to both filter and transform the data from the producer before attaching to an EventBus for further consumption.

< 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-sns-sqs-eventbridge-pipes-stepfunctions

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Benjamen Pyle

Benjamen Pyle

Benjamen Pyle is an AWS Community Builder who loves building scalable and useful applications with Serverless and Event Driven Architectures

Follow on LinkedIn