AWS Step Functions
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

使用 Step Functions 管理 AWS Batch

Step Functions can control some AWS services directly from the Amazon 状态语言. For more information, see:

支持的 API:


Parameters in Step Functions are expressed in PascalCase, even when the native service API is camelCase.

下面是一个提交 AWS Batch 任务并等待任务完成的 Task 状态。

{ "StartAt": "BATCH_JOB", "States": { "BATCH_JOB": { "Type": "Task", "Resource": "arn:aws-cn: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 策略.