memo.log

技術情報の雑なメモ

Step FunctionsでMap内から子ステートマシンを実行する小さなサンプル

{
  "Comment": "sample",
  "StartAt": "map",
  "States": {
    "map": {
      "Type": "Map",
      "ItemsPath": "$.numbers",
      "Iterator": {
        "StartAt": "start",
        "States": {
          "start": {
            "Type": "Task",
            "Resource": "arn:aws:states:::states:startExecution.sync",
            "Parameters": {
              "StateMachineArn": "arn:aws:states:[Region]:[AWSAccountID]:[StateMachineName]"
            },
            "End": true
          }
        }
      },
      "Next": "World"
    },
    "World": {
      "Type": "Pass",
      "Result": "World",
      "End": true
    }
  }
}