In this step, you submit many jobs at once, known as an array job. To do so, you create a JSON file that contains the parameters of the job array.
cat <<EOF > ./my-job.json
{
"jobName": "my-job",
"jobQueue": "YOUR-JOB-QUEUE-NAME",
"arrayProperties": {
"size": 500
},
"jobDefinition": "YOUR-JOB-DEFINITION-NAME"
}
EOF
aws batch submit-job --cli-input-json file://my-job.json
You just launched an array job of 500 jobs! To learn more about job arrays, see Tutorial: Using the Array Job Index to Control Job Differentiation.