Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Tutorial: Submit an AWS Batch array job

Focus mode
Tutorial: Submit an AWS Batch array job - AWS Batch

After you registered your job definition, you can submit an AWS Batch array job that uses your new container image.

To submit an AWS Batch array job
  1. Create a file named print-color-job.json in your workspace directory and paste the following into it.

    Note

    This example uses the job queue mentioned in the Prerequisites section.

    { "jobName": "print-color", "jobQueue": "existing-job-queue", "arrayProperties": { "size": 7 }, "jobDefinition": "print-color" }
  2. Submit the job to your AWS Batch job queue. Note the job ID that's returned in the output.

    $ aws batch submit-job --cli-input-json file://print-color-job.json
  3. Describe the job's status and wait for the job to move to SUCCEEDED.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.