aws / aws-sam-cli

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
https://aws.amazon.com/serverless/sam/
Apache License 2.0
6.51k stars 1.17k forks source link

sam local generate step functions mocking configuration #3619

Open jeromevdl opened 2 years ago

jeromevdl commented 2 years ago

Describe your idea/feature/enhancement

With the recent announcement of "Mocked Service Integrations" for Step Functions, it would be great to have a new command (something like sam local generate-step-functions-mock to generate the MockConfigFile.json with SAM, just like we can generate events using sam local generate-event.

Proposal

Based on the step function state machine configuration, it would be great to have a wizard that asks for each state (service integration) what the mocking configuration should be. At the end of the process, it generates the MockConfigFile.json

Additional Details

wchengru commented 2 years ago

Thanks for letting us know this great suggestion @jeromevdl ! I will raise an internal discussion with our team on this feature request, and will let you know if we have any update on it.