Run multiple fargate task with step function

Viewed 1192

I would like to run 5 instances of my fargate task with step function.

...
    "Fargate_task": {
      "Type": "Task",
      "Resource": "arn:aws:states:::ecs:runTask.sync",
      "Parameters": {
        "LaunchType": "FARGATE",
        "Count":5,
        "Cluster": "my_cluster",
        "TaskDefinition": "my_task_definition",
        "NetworkConfiguration": {
          "AwsvpcConfiguration": {
            "Subnets": [
              "subnet-1",
              "subnet-2"
            ],
            "AssignPublicIp": "ENABLED"
          }
        }
      },
      "Next": "Next_task"
    },
...

This is the Json I provided, but I can't save it because "The field 'Count' is not supported by Step Functions".

Do you have any idea of how to do ?

I followed the doc here where the key 'count' is written ...

Thank you for helping

1 Answers
Related