360 Secure SkillHub
360 安全技能中心

Awscli

该 Skill 接收结构化 JSON 指令,调用主机上的 AWS CLI 对 AWS Lightsail/EC2 实例执行列出、启动、停止和重启操作。依赖 AWS_REGION 与 ALLOWED_INSTANCES 环境变量以及已配置的 AWS 凭证,不生成 CLI 命令,实例名须与现有实例完全一致。

分类:自动化
hypertextassassinrajith
hypertextassassinrajith
热度 53.27
最近更新 2026-05-11 16:28:08

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add hypertextassassinrajith/awscli
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
awscli
description
Manage AWS Lightsail and EC2 instances using AWS CLI
version
1.0.0
author
RajithSanjaya

AWS CLI Control Skill

This skill manages AWS Lightsail instances.

Requirements

  • AWS CLI installed on host

  • AWS credentials configured (IAM user or role)

  • Environment variables:

    • AWS_REGION
    • ALLOWED_INSTANCES

    Environment Variables

This skill requires the following environment variables:

  • AWS_REGION (e.g., ap-southeast-1)
  • ALLOWED_INSTANCES (comma-separated list)

Example:

AWS_REGION=ap-southeast-1 ALLOWED_INSTANCES=Ubuntu,Binami

Available Operations

1. List Instances

action: "list"

Example: { "action": "list" }


2. Reboot Instance

action: "reboot"
instance: ""

Example: { "action": "reboot", "instance": "Ubuntu-1" }


3. Start Instance

action: "start"
instance: ""


4. Stop Instance

action: "stop"
instance: ""


Notes

  • Only use structured JSON input.
  • Do NOT generate AWS CLI commands.
  • Instance names must exactly match existing Lightsail instances.