360 Secure SkillHub
360 安全技能中心

AWS Infra

该技能借助本地 AWS CLI 回答 AWS 资源相关问题,涵盖清单查询、健康与错误排查、安全检查和成本查询,默认只读;涉及删除、终止、修改、扩容或 IAM 凭据等破坏性操作时,要求先给出确切命令并取得用户明确确认。

bmdhodl
bmdhodl
热度 99.12
最近更新 2026-05-11 15:50:57
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 自动化脚本 / 数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add aws-infra
Metadata
name
aws-infra
description
Chat-based AWS infrastructure assistance using AWS CLI and console context. Use for querying, auditing, and monitoring AWS resources (EC2, S3, IAM, Lambda, ECS/EKS, RDS, CloudWatch, billing, etc.), and for proposing safe changes with explicit confirmation before any write/destructive action.

AWS Infra

Overview

Use the local AWS CLI to answer questions about AWS resources. Default to read‑only queries. Only propose or run write/destructive actions after explicit user confirmation.

Quick Start

  1. Determine profile/region from environment or ~/.aws/config.
  2. Start with identity:
    • aws sts get-caller-identity
  3. Use read‑only service commands to answer the question.
  4. If the user asks for changes, outline the exact command and ask for confirmation before running.

Safety Rules (must follow)

  • Treat all actions as read‑only unless the user explicitly requests a change and confirms it.
  • For any potentially destructive change (delete/terminate/destroy/modify/scale/billing/IAM credentials), require a confirmation step.
  • Prefer --dry-run when available and show the plan before execution.
  • Never reveal or log secrets (access keys, session tokens).

Task Guide (common requests)

  • Inventory / list: use list/describe/get commands.
  • Health / errors: use CloudWatch metrics/logs queries.
  • Security checks: IAM, S3 public access, SG exposure, KMS key usage.
  • Costs: Cost Explorer / billing queries (read‑only).
  • Changes: show exact CLI command and require confirmation.

Region & Profile Handling

  • If the user specifies a region/profile, honor it.
  • Otherwise use AWS_PROFILE / AWS_REGION if set, then fall back to ~/.aws/config.
  • When results are region‑scoped, state the region used.

References

See references/aws-cli-queries.md for common command patterns.

Assets

  • assets/icon.svg — custom icon (dark cloud + terminal prompt)