AWS Step Functions to Amazon EventBridge

Step Functions → EventBridge

Creates a Step Functions workflow that publishes events to EventBridge

The AWS SAM template deploys a Step Functions workflow that publishes an event to an EventBridge event bus. An IAM Role allows the workflow execution to publish events onto the event bus. An EventBridge rule forwards all events to a CloudWatch Logs log group for easy inspection.

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

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Execute the Step Functions workflow:
aws stepfunctions start-execution --state-machine-arn ENTER_YOUR_STATE_MACHINE_ARN
2. View CloudWatch Logs to see events that Step Functions published to EventBridge:
aws logs tail CLOUDWATCH_LOG_GROUP
3. You see an event that was delivered to the event bus.

Created by:

David Maccarone

David Maccarone

Senior Solutions Architect at Amazon Web Services.