用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tenfyzhong/skills-hub --skill deploy-ec2-aws命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | deploy-ec2-aws |
| description | Deploy and manage AWS EC2 nodes using Terraform. |
Scaffold a self-contained Terraform project, then provision one or more named EC2 node groups on AWS. Create a dedicated VPC and public subnet, allow private communication among nodes, restrict SSH ingress, and assign a stable Elastic IP to every node.
Before running live AWS or Terraform commands, read references/deployment.md.
Require every node group to have a unique name and positive count. Ask for either value if missing.
Accept CPU and memory as optional minimum requirements. When omitted, use the small default:
2 vCPU4 GiBt3.mediumUse repeated node specifications for differently named groups:
api=2
worker=3:4:8
The format is NAME=COUNT[:CPU:MEMORY_GIB]. CPU and memory are minimums; the resolver may select a slightly larger x86_64 instance type when AWS has no exact match. Do not silently change an explicit count.
Use the node group name as the EC2 Name tag. For a group with one node, use the exact group name. For a group with multiple nodes, append zero-padded sequence numbers such as api-01 and api-02. Do not prefix EC2 names with the deployment namespace.
Defaults:
ec2-nodes-<YYMMDDHHMM> using local time$HOME/test/ec2-aws-<namespace>defaultus-west-220 GiB encrypted GP3/32Resolve this skill directory, then run:
python3 <skill-dir>/scripts/scaffold_project.py \
--node api=2 \
--node worker=3:4:8
Pass user-specified deployment settings explicitly:
python3 <skill-dir>/scripts/scaffold_project.py \
--target "$HOME/test/ec2-aws-demo" \
--namespace demo \
--aws-profile default \
--region us-west-2 \
--ssh-cidr 203.0.113.10/32 \
--public-key "$HOME/.ssh/id_ed25519.pub" \
--node api=2:2:4 \
--node worker=3:4:8
When --target is omitted, report the absolute path printed by the script. Continue all Terraform operations from that path and use its generated README.md as the local operation guide.
Keep these defaults unless the user explicitly requests a change:
ssh_cidr.For additional public ports, add the narrowest security-group rule that meets the request. Require an explicit source CIDR; do not default application ports to 0.0.0.0/0.
terraform init, plan, apply, or destroy. Refresh AWS SSO login when needed.terraform apply or terraform destroy unless the user explicitly requested provisioning or cleanup.--force on a deployment directory containing state unless the user explicitly asked to replace its local project.README.md, public/private IP outputs, resolved instance types, and SSH commands.