[AWS] stepfunctions-local

本质是本地docker,只支持异步调用

  1. 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

  2. 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":"hello word"}},"Success":{"Type":"Succeed"}}}"
    --role-arn "arn:aws:iam::012345678901:role/DummyRole"

    return
    {
    "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:sf-noDependencies",
    "creationDate": "2024-04-23T09:21:28.168000+08:00"
    }

  • run sf-noDependencies

    aws stepfunctions start-execution --endpoint-url http://localhost:8083 --state-machine-arn arn:aws:states:us-east-1:123456789012:stateMachine:sf-noDependencies

    return
    {
    "executionArn": "arn:aws:states:us-east-1:123456789012:execution:sf-noDependencies:37c65018-25db-4d92-9aee-6e319b1cf5b7",
    "startDate": "2024-04-22T15:08:15.401000+08:00"
    }

  • describe-execution

    aws stepfunctions describe-execution --endpoint http://localhost:8083 --execution-arn arn:aws:states:us-east-1:123456789012:execution:sf-noDependencies:37c65018-25db-4d92-9aee-6e319b1cf5b7

相关推荐
The star"'8 小时前
04-管理变量和事实
运维·云计算·ansible
wanhengidc11 小时前
什么是裸金属服务器
运维·服务器·科技·智能手机·云计算
@HNUSTer11 小时前
基于 GEE 使用 Landsat-9 卫星的 Level-2 级数据实现水体表面温度反演
云计算·数据集·遥感大数据·gee·云平台·landsat·温度反演
TG:@yunlaoda360 云老大12 小时前
腾讯云国际站代理商TEFP有什么优势呢?
大数据·云计算·腾讯云
ZStack开发者社区13 小时前
ZStack HelixOS通过openEuler认证 打造国内生态虚拟化新底座
云计算
wanhengidc14 小时前
电脑端 云手机都有哪些注意事项
运维·服务器·安全·智能手机·云计算
TG:@yunlaoda360 云老大14 小时前
如何了解腾讯云国际站代理商的MRP有什么优势呢?
大数据·云计算·产品运营·腾讯云
有谁看见我的剑了?15 小时前
Vmware vSphereClient为虚机安装vmtools
运维·云计算
suki_lynn15 小时前
云手机全息备份,您的数据安全“时光保险箱”
智能手机·云计算·安卓
wanhengidc15 小时前
云端算力 云手机 巨 椰
运维·服务器·科技·智能手机·云计算