[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

相关推荐
翼龙云_cloud14 分钟前
亚马逊云渠道商:AWS EC2 实战案例解析
服务器·云计算·aws
gaize12132 小时前
阿里云服务器用途配置选购指南与最新价格表
服务器·阿里云·云计算
Akamai中国4 小时前
Akamai Cloud客户案例 | 全球教育科技公司TalentSprint依托Akamai云计算服务实现八倍增长并有效控制成本
人工智能·云计算·云服务·云存储
Lim小刘6 小时前
云端“拆墙”:AWS 与谷歌云握手言和,AWS Interconnect 会是多云时代的终极解药吗?
云计算·aws
咕噜企业分发小米6 小时前
阿里云与华为云基因测序数据同步安全性对比?
阿里云·华为云·云计算
咕噜企业分发小米6 小时前
阿里云与华为云基因测序数据同步延迟对比?
阿里云·华为云·云计算
ApachePulsar6 小时前
演讲回顾|Apache Pulsar 在腾讯云上的高可用性最佳实践
云计算·apache·腾讯云
上海云盾第一敬业销售7 小时前
云计算环境下的DDoS防御架构解析
架构·云计算·ddos
OAK中国_官方7 小时前
如何选择合适的视觉系统: 云端 VS 边缘
计算机视觉·云计算·深度相机·英伟达
咕噜企业分发小米8 小时前
阿里云与华为云基因测序数据同步的日志格式是什么?
阿里云·华为云·云计算