Services >> Cloud >> AWS >> Service >> Compute >> Batch >> How to define a new AWS Batch service job

Create the IAM role first

Services -> IAM -> Roles

Create Role

AWS Service -> EC2 Container Service

From the list "Select your use case" select "EC2 Container Service Task"

Click "Next Permissions"

Tick to select the policies that apply for your Job 

 

Create the Batch Job

After the above IAM role created, it will be listed in the drop down list for Job Role, if not listed yet, click the refresh button

For the Container Image, select the Docker image in the AWS ECS container registry

In the "Command" box, enter the OS batch command to execute

If certain environment variables are required, enter them under "Environment variables"