Linux command
aws-batch 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Submit a job
aws batch submit-job --job-name [my-job] --job-queue [my-queue] --job-definition [my-definition]
List all jobs
aws batch list-jobs --job-queue [my-queue] --job-status [RUNNING|SUBMITTED|PENDING|SUCCEEDED|FAILED]
Describe details
aws batch describe-jobs --jobs [job-id-1] [job-id-2]
Create a managed compute environment
aws batch create-compute-environment --compute-environment-name [my-env] --type MANAGED --compute-resources type=EC2,minvCpus=0,maxvCpus=256,instanceTypes=optimal
Register a job definition
aws batch register-job-definition --cli-input-json file://[job-definition.json]
Cancel a running job
aws batch cancel-job --job-id [job-id] --reason "[cancellation reason]"
说明
aws batch is the AWS CLI interface for Amazon Web Services Batch, a fully managed service for running batch computing workloads on AWS Cloud. It automatically provisions compute resources and optimizes workload distribution based on quantity and scale of workloads. AWS Batch eliminates the need to install or manage batch computing software, removing capacity constraints and reducing overall compute costs. It supports batch computing workloads of any scale, from simple shell scripts to complex multi-node parallel jobs.
FAQ
What is the aws-batch command used for?
aws batch is the AWS CLI interface for Amazon Web Services Batch, a fully managed service for running batch computing workloads on AWS Cloud. It automatically provisions compute resources and optimizes workload distribution based on quantity and scale of workloads. AWS Batch eliminates the need to install or manage batch computing software, removing capacity constraints and reducing overall compute costs. It supports batch computing workloads of any scale, from simple shell scripts to complex multi-node parallel jobs.
How do I run a basic aws-batch example?
Run `aws batch submit-job --job-name [my-job] --job-queue [my-queue] --job-definition [my-definition]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more aws-batch examples?
This page includes 6 examples for aws-batch, plus related commands for nearby Linux tasks.