跳到正文
TakoAPI
返回技能列表

awscli

由 hypertextassassinrajith 提供

DevOps & Cloud
613下载量由 clawskills.sh 提供
2星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage AWS Lightsail and EC2 instances using AWS CLI.

描述

该技能的功能

Controls AWS Lightsail instances through structured JSON actions. Supports listing, starting, stopping, and rebooting instances. Instance access is restricted to a configured allowlist.

Restricts instance operations to a safe allowlist, preventing accidental actions on unintended resources.

何时使用

  • Reboot a stuck Lightsail instance without opening the AWS console
  • Start a stopped dev server before a demo
  • Shut down instances at end of day to reduce costs
  • List all running instances to audit current state
  • Automate instance lifecycle from a chat interface

示例工作流

输入

User asks: 'Reboot the Ubuntu-1 instance'

智能体
  1. 1

    Validates 'Ubuntu-1' is in the ALLOWED_INSTANCES list

  2. 2

    Constructs JSON payload with action 'reboot' and instance 'Ubuntu-1'

  3. 3

    Sends structured request to the AWS CLI skill

  4. 4

    Receives confirmation of reboot initiation

输出

Ubuntu-1 instance reboot initiated successfully

前置要求

  • AWS CLI installed and configured on the host machine
  • AWS_REGION environment variable
  • ALLOWED_INSTANCES environment variable (comma-separated instance names)
  • AWS IAM credentials with Lightsail permissions

安装

clawhub install hypertextassassinrajith/awscli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接