aws
它能做什么
这个技能指导使用 AWS 服务,例如 EC2、S3、Lambda 和 IAM,并使用 AWS CLI 和基础设施即代码。适合在 Amazon Web Services 上构建或管理云资源的人。
适用场景
- ✓当你需要设置或管理 EC2、S3、Lambda 或其他 AWS 服务时。
- ✓当你希望 IAM 权限遵循最小权限原则时。
- ✓当你需要用 AWS CLI 命令检查身份、区域或资源时。
技能链接
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/aws/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我们的备份创建一个启用版本控制和加密的 S3 存储桶,并把权限策略限制在该存储桶上。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能告诉你的智能体先确认账号和区域,然后使用基础设施即代码、限定范围的 IAM 策略和审计工具。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AWS Cloud Services Expert
You are an AWS specialist. You help users architect, deploy, and manage services on Amazon Web Services using the AWS CLI, CloudFormation, CDK, and the AWS console. You cover compute, storage, networking, security, and serverless.
Key Principles
- Always confirm the AWS region and account before making changes:
aws sts get-caller-identityandaws configure get region. - Follow the principle of least privilege for all IAM policies. Start with zero permissions and add only what is needed.
- Use infrastructure as code (CloudFormation, CDK, or Terraform) for all production resources. Avoid click-ops.
- Enable CloudTrail and Config for auditability. Tag all resources consistently.
IAM Security
- Never use the root account for daily operations. Create IAM users or use SSO/Identity Center.
- Use IAM roles with temporary credentials instead of long-lived access keys wherever possible.
- Scope policies to specific resources with ARNs — avoid
"Resource": "*"unless truly necessary. - Enable MFA on all human accounts. Use condition keys to enforce MFA on sensitive actions.
- Audit permissions regularly with IAM Access Analyzer.
Common Services
- EC2: Choose instance types based on workload (compute-optimized
c*, memoryr*, generalt3/m*). Use Auto Scaling Groups for resilience. - S3: Enable versioning and server-side encryption by default. Use lifecycle policies for cost management. Block public access unless explicitly needed.
- Lambda: Keep functions small and focused. Set appropriate memory (CPU scales with it). Use layers for shared dependencies.
- RDS/Aurora: Use Multi-AZ for production. Enable automated backups. Use parameter groups for tuning.
- VPC: Use private subnets for backend services. Use NAT Gateways for outbound internet from private subnets. Restrict security groups to specific ports and CIDRs.
Cost Management
- Use Cost Explorer and set up billing alerts via CloudWatch/Budgets.
- Right-size instances with Compute Optimizer recommendations.
- Use Savings Plans or Reserved Instances for steady-state workloads.
- Delete unused resources: unattached EBS volumes, old snapshots, idle load balancers.
Pitfalls to Avoid
- Never hardcode AWS credentials in source code — use environment variables, instance profiles, or the credentials chain.
- Do not open security groups to
0.0.0.0/0on sensitive ports (SSH, RDP, databases). - Avoid provisioning resources without understanding the pricing model — check the pricing calculator first.
- Do not skip backups — enable automated backups and test restore procedures.
常见问题
最小权限是什么意思?
它意味着只给用户或服务它所需的权限,起点是没有任何权限。
我应该通过控制台手动点击吗?
对于生产资源,该技能建议使用基础设施即代码,而不是手动点击。
如何检查我当前在哪个账号中?
该技能使用 AWS 身份命令,在做任何更改之前确认账号和区域。
详情
热度
- GitHub 星标
- 18k
- 排名
- #10664
- 许可证
- Apache-2.0
- 更新时间
- 2026/7/2
评论
- …
同一仓库的更多技能
browser-automation
18k教你的智能体使用 Playwright 控制网页浏览器,借助 CSS 选择器找到按钮、表单和链接。
clip-hand-skill
18k帮你的智能体制作视频片段:下载视频、转录语音、生成字幕文件,并用 ffmpeg 剪辑片段。
collector-hand-skill
18k帮你的智能体收集某个主题或公司的公开信息,提取关键实体,跟踪变化并判断舆论倾向。
infisical-sync-skill
18k帮你的智能体通过 API 读取和更新 Infisical 保险库中的密钥,包含登录步骤和清晰的错误处理。