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:
- - AWSREGION (e.g., ap-southeast-1)
- ALLOWEDINSTANCES (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.
AWS CLI 控制技能
该技能用于管理 AWS Lightsail 实例。
前提条件
- - 主机上已安装 AWS CLI
- 已配置 AWS 凭证(IAM 用户或角色)
- 环境变量:
- AWS_REGION
- ALLOWED_INSTANCES
## 环境变量
本技能需要以下环境变量:
- - AWSREGION(例如:ap-southeast-1)
- ALLOWEDINSTANCES(逗号分隔列表)
示例:
AWS_REGION=ap-southeast-1
ALLOWED_INSTANCES=Ubuntu,Binami
可用操作
1. 列出实例
操作:list
示例:
{
action: list
}
2. 重启实例
操作:reboot
实例:<实例名称>
示例:
{
action: reboot,
instance: Ubuntu-1
}
3. 启动实例
操作:start
实例:<实例名称>
4. 停止实例
操作:stop
实例:<实例名称>
注意事项
- - 仅使用结构化的 JSON 输入。
- 请勿生成 AWS CLI 命令。
- 实例名称必须与现有的 Lightsail 实例完全匹配。