[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

相关推荐
TG:@yunlaoda360 云老大3 小时前
Leverege 携手谷歌云和BigQuery,赋能大规模企业级物联网(IoT)解决方案
物联网·云计算·googlecloud
@HNUSTer5 小时前
基于 GEE 利用 WorldPop 数据集批量导出 100 米分辨率人口影像数据与时序分析
数据分析·云计算·数据集·遥感大数据·gee·云平台·worldpop
Lynnxiaowen7 小时前
今天我们开始学习Linux自动化运维Ansible基础
linux·运维·学习·自动化·云计算·ansible
云计算老刘8 小时前
1. Cockpit 管理服务器;2. Linux 软件包管理
linux·运维·服务器·云原生·云计算
Lucifer三思而后行9 小时前
使用 BR 备份 TiDB 到阿里云 OSS 存储
阿里云·云计算·tidb
周杰伦_Jay9 小时前
【多智能体协作】定义、机制、模式与实践全解析
人工智能·云计算
wanhengidc12 小时前
在云手机中云计算的作用都有哪些?
服务器·网络·游戏·智能手机·云计算
ICT系统集成阿祥12 小时前
100个云计算基础知识
云计算
IFLY51321 小时前
使用arduino用 esp32 连接阿里云遇到的坑
阿里云·云计算
wanhengidc1 天前
全面了解云手机的安全性
运维·服务器·游戏·智能手机·云计算