- Newest
- Most votes
- Most comments
Hi,
You can leverage the Amazon EventBridge service integration for AWS Step Functions to achieve what you want: see https://aws.amazon.com/blogs/compute/introducing-the-amazon-eventbridge-service-integration-for-aws-step-functions/ for all details.
Reference doc is here: https://docs.aws.amazon.com/step-functions/latest/dg/connect-eventbridge.html
Best,
Didier
=>Enable CloudWatch Events for your state machine in Step Functions.
=>Create an EventBridge rule with the appropriate event pattern to capture the desired events.
=>Choose a target to send these events to (like Lambda, SNS, etc.).
=>This setup ensures that you receive events in EventBridge after each step in your Step
=> Functions state machine, allowing you to persist the details in your own database.
I was trying but it sent me events just on changing status of the whole execution process, there's no events about the steps inside this execution, can you maybe send me event pattern?
Relevant content
- AWS OFFICIALUpdated 2 years ago

Thanks @Didier for your answer, I will use it. But I think that it will be really helpful for developers to get info about each step in a more proper way, without set a separate tasks for them. This should be as an option in EventBridge rule settings.
Hi, I agree that it could become a config parameter to require Step Functions service to do it automatically. I'll check if it comes. Thanks for accepting my answer!
This answer is correct and instrumenting your workflows with events like this is the way to go. However, if you are simply looking to have access to all of the history from your workflow executions, you can also look at enabling logging to CloudWatch Logs: https://docs.aws.amazon.com/step-functions/latest/dg/cw-logs.html This will send all History Events to CloudWatch logs which you can use as the database of information (should you be looking to get it all) and you can also process those logs to prepare statistics for your application.