“六个月前,每个人都在谈论MCP。我当时想,拧紧MCP。每个MCP作为CLI都会更好。” — 彼得·斯坦伯格OpenClaw创始人 在YouTube上观看(~2:39:00) | 莱克斯·弗里德曼播客#491
AWS批处理命令行界面
用于AWS Batch Computing API的生产就绪CLI。从终端提交和管理批处理作业、队列和作业定义。
安装
npm install -g @ktmcp-cli/awsbatch配置
awsbatch config set accessKeyId YOUR_AWS_ACCESS_KEY_ID
awsbatch config set secretAccessKey YOUR_AWS_SECRET_ACCESS_KEY
awsbatch config set region us-east-1用法
工作
# Submit a job
awsbatch jobs submit --name my-job --queue my-queue --definition my-job-def
awsbatch jobs submit --name my-job --queue my-queue --definition my-job-def \
--parameters '{"key":"value"}' \
--container-overrides '{"command":["my-script.sh"]}'
# Get job status
awsbatch jobs get
# List jobs in a queue
awsbatch jobs list --queue my-queue
awsbatch jobs list --queue my-queue --status RUNNING
awsbatch jobs list --queue my-queue --status SUCCEEDED --limit 20
# Describe multiple jobs
awsbatch jobs describe
# Terminate a job
awsbatch jobs terminate
awsbatch jobs terminate --reason "No longer needed"队列
# List job queues
awsbatch queues list
# Get queue details
awsbatch queues get my-queue
# Create a queue
awsbatch queues create --name my-queue --priority 10
awsbatch queues create --name my-queue --state ENABLED --priority 5
# Update a queue
awsbatch queues update my-queue --state DISABLED
awsbatch queues update my-queue --priority 20职位定义
# List job definitions
awsbatch definitions list
awsbatch definitions list --name my-definition
awsbatch definitions list --status ACTIVE
# Describe a job definition
awsbatch definitions describe my-definition
# Register a job definition
awsbatch definitions register --name my-job-def --type container \
--container '{"image":"my-image:latest","vcpus":1,"memory":512}'JSON输出
所有命令支持 --json:
awsbatch jobs get --json
awsbatch queues list --json
awsbatch definitions list --json | jq '.[].jobDefinitionName'许可证
麻省理工学院
______________________________________________________________________
支持KTMCP
如果您发现此CLI有用,我们将非常感谢您的支持!分享您的经验:
- 红迪
- 推特/X
- 黑客新闻
激励: 能够证明他们的支持/倡导有助于推进KTMCP的用户将优先考虑他们的功能请求和问题。
请注意,这些是真实的账户和真实的社区。真实的提及和真实的推荐会有很长的路要走!
支持这个项目
如果您发现此CLI有用,我们将感谢Reddit、Twitter、Hacker News或Moltbook的支持。请注意,这些是真实的社区账户。能够证明其支持有助于推进KTMCP的贡献者将优先考虑其PR和功能请求。
