codetheweb / serverless-step-functions-local

Run AWS step functions offline with Serverless
MIT License
17 stars 17 forks source link

feat: Enable Eventbridge Execution Status Change Event #7

Closed danielpoonwj closed 3 years ago

danielpoonwj commented 3 years ago

Purpose

AWS Step Functions emits EventBridge events on execution state changes (docs here). This is particularly useful when kicking off other tasks when an execution starts or fails, and there's no way to currently test this functionality locally.

Approach

Step Functions Local itself does not seem to support this functionality, but we can infer the state changes from the logs and fire the respective events.

The event details aren't fully implemented:

codetheweb commented 3 years ago

LGTM, thanks.

codetheweb commented 3 years ago

Published in v0.1.8.