AWS Step Functions
Developer Guide

Manage AWS Batch With Step Functions

Step Functions can control some AWS services directly from the Amazon States Language. For more information, see:

Supported APIs:


Parameters in Step Functions are expressed in CamelCase, even when the native service API is pascalCase.

The following includes a Task state that submits an AWS Batch job and waits for it to complete.

{ "StartAt": "BATCH_JOB", "States": { "BATCH_JOB": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync", "Parameters": { "JobDefinition": "preprocessing", "JobName": "PreprocessingBatchJob", "JobQueue": "SecondaryQueue", "Parameters.$": "$.batchjob.parameters", "ContainerOverrides": { "vcpus": 4 } }, "End": true } } }

For information on how to configure IAM when using Step Functions with other AWS services, see IAM Policies for Integrated Services.