AWS Batch
User Guide

Job Definition Template

An empty job definition template is shown below. You can use this template to create your job definition, which can then be saved to a file and used with the AWS CLI --cli-input-json option. For more information about these parameters, see Job Definition Parameters.

{ "jobDefinitionName": "", "type": "container", "parameters": { "KeyName": "" }, "containerProperties": { "image": "", "vcpus": 0, "memory": 0, "command": [ "" ], "jobRoleArn": "", "volumes": [ { "host": { "sourcePath": "" }, "name": "" } ], "environment": [ { "name": "", "value": "" } ], "mountPoints": [ { "containerPath": "", "readOnly": true, "sourceVolume": "" } ], "readonlyRootFilesystem": true, "privileged": true, "ulimits": [ { "hardLimit": 0, "name": "", "softLimit": 0 } ], "user": "" }, "retryStrategy": { "attempts": 0 }, "timeout": { "attemptDurationSeconds": 0 } }

Note

You can generate the above job definition template with the following AWS CLI command:

$ aws batch register-job-definition --generate-cli-skeleton