AgentSkillsCN

awscli

使用AWS CLI管理AWS Lightsail与EC2实例。

SKILL.md
--- frontmatter
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: "<instance-name>"

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


3. Start Instance

action: "start"
instance: "<instance-name>"


4. Stop Instance

action: "stop"
instance: "<instance-name>"


Notes

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