本质是本地docker,只支持异步调用
- run aws-stepfunctions-local
docker run -p 8083:8083 \
--mount type=bind,readonly,source=/path/MockConfigFile.json,destination=/home/StepFunctionsLocal/MockConfigFile.json \
-e SFN_MOCK_CONFIG="/home/StepFunctionsLocal/MockConfigFile.json" \
--env-file /path/aws-stepfunctions-local-credentials.txt \
amazon/aws-stepfunctions-local
- Create a state machine
aws stepfunctions create-state-machine --endpoint-url http://localhost:8083 \
--name "sf-noDependencies" \
--definition "{\"Comment\":\"A description of my state machine\",\"StartAt\":\"Pass\",\"States\":{\"Pass\":{\"Type\":\"Pass\",\"Next\":\"Success\",\"Result\":{\"output\"