f. Run a Single Job

In this step, you launch a job using the AWS CLI. (Note that you could also use the AWS Management Console or the AWS SDK to submit jobs, but this workshop does not cover those options.)

Run the following command on Cloud9 terminal to run a single job..

aws batch submit-job --job-name nextflow-job --job-queue nextflow-jq --job-definition nextflow-demo --region $AWS_REGION

If the job does not run, double-check that the job queue name and job definition are correct.

Once your job is submitted successfully, note the Job Id because you can use it to show the status of a job:

aws batch describe-jobs --jobs <your-job-id> --region $AWS_REGION

A JSON displays and describes the status of you job.