HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

aws batch — Run batch computing workloads through the AWS Batch service. More information: <https://docs.aws.ama

Submitted by: @import:tldr-pages··
0
Viewed 0 times
computingcommandbatchruncliaws batchworkloadsthrough

Problem

How to use the aws batch command: Run batch computing workloads through the AWS Batch service. More information: <https://docs.aws.amazon.com/cli/latest/reference/batch/>.

Solution

aws batch — Run batch computing workloads through the AWS Batch service. More information: <https://docs.aws.amazon.com/cli/latest/reference/batch/>.

List running batch jobs:
aws batch list-jobs --job-queue {{queue_name}}


Create compute environment:
aws batch create-compute-environment --compute-environment-name {{compute_environment_name}} --type {{type}}


Create batch job queue:
aws batch create-job-queue --job-queue-name {{queue_name}} --priority {{priority}} --compute-environment-order {{compute_environment}}


Submit job:
aws batch submit-job --job-name {{job_name}} --job-queue {{job_queue}} --job-definition {{job_definition}}


Describe the list of batch jobs:
aws batch describe-jobs --jobs {{jobs}}


Cancel job:
aws batch cancel-job --job-id {{job_id}} --reason {{reason}}

Code Snippets

List running batch jobs

aws batch list-jobs --job-queue {{queue_name}}

Create compute environment

aws batch create-compute-environment --compute-environment-name {{compute_environment_name}} --type {{type}}

Create batch job queue

aws batch create-job-queue --job-queue-name {{queue_name}} --priority {{priority}} --compute-environment-order {{compute_environment}}

Submit job

aws batch submit-job --job-name {{job_name}} --job-queue {{job_queue}} --job-definition {{job_definition}}

Describe the list of batch jobs

aws batch describe-jobs --jobs {{jobs}}

Context

tldr-pages: common/aws batch

Revisions (0)

No revisions yet.