Job definitions
AWS Batch job definitions specify how jobs are to be run. While each job must reference a job definition, many of the parameters that are specified in the job definition can be overridden at runtime.
Some of the attributes specified in a job definition include:
-
Which Docker image to use with the container in your job.
-
How many vCPUs and how much memory to use with the container.
-
The command the container should run when it is started.
-
What (if any) environment variables should be passed to the container when it starts.
-
Any data volumes that should be used with the container.
-
What (if any) IAM role your job should use for AWS permissions.
Contents
- Create a single-node job definition
- Create a multi-node parallel job definition
- Reference: Job definition template that uses ContainerProperties
- Create job definitions using EcsProperties
- Use the awslogs log driver
- Specify sensitive data
- Private registry authentication for jobs
- Amazon EFS volumes
- Reference: Job definition examples