跳到正文
Skillpedia
部署与云(DevOps)18k · #10664

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/aws/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-identity and aws 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*, memory r*, general t3/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/0 on 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 身份命令,在做任何更改之前确认账号和区域。

详情

作者的原始描述

AWS cloud services expert for EC2, S3, Lambda, IAM, and AWS CLI

repo: RightNow-AI/openfang

热度

GitHub 星标
18k
排名
#10664
许可证
Apache-2.0
更新时间
2026/7/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能