launching-ec2-instance-with-best-practices — скилл для Claude Code
Скилл помогает запускать EC2 с настройками для безопасности и контроля затрат. Пригодится при развёртывании новых инстансов в AWS.
npx skills add aws/agent-toolkit-for-aws --skill launching-ec2-instance-with-best-practices -a claude-codeЧто делает launching-ec2-instance-with-best-practices
Скилл ведёт запуск EC2 от выбора AMI и типа инстанса до проверки после старта. Он учитывает тип нагрузки и окружение, проверяет VPC, subnet и размещение в public или private сети, а также сверяет совместимость архитектуры AMI и инстанса.
В процедуру входят IAM-роли с минимальными правами, security groups с ограниченным набором портов, зашифрованное хранилище gp3 и теги для учёта затрат. После запуска скилл даёт инструкции для проверки и подключения. Поскольку AMI должна соответствовать типу инстанса, это повод сверить архитектуру до запуска.
При проблемах с ёмкостью предлагается сменить Availability Zone или тип инстанса. Для SSH нужно проверить доступ из своего IP, права файла ключа 400 и состояние инстанса; альтернативой назван AWS Systems Manager Session Manager. Логи консоли можно получить через aws ec2 get-console-output.
Какие задачи решает
- запустить EC2 с настройками безопасности
- подобрать совместимые AMI и тип инстанса
- настроить IAM-роли с минимальными правами
- ограничить входящие порты через security group
- зашифровать gp3 и добавить теги для учёта затрат
Примеры запросов агенту
- Запусти новый EC2 для этого окружения и выбери совместимые AMI и тип инстанса.
- Проверь VPC, subnet и public/private размещение перед запуском EC2.
- После запуска проверь инстанс и подготовь инструкции для подключения по SSH.
Как установить launching-ec2-instance-with-best-practices
1Через Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill launching-ec2-instance-with-best-practices -a claude-code2Вручную: положить файлы
~/.claude/skills/launching-ec2-instance-with-best-practices/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/launching-ec2-instance-with-best-practices/
1Через Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill launching-ec2-instance-with-best-practices -a codex2Вручную: положить файлы
.agents/skills/launching-ec2-instance-with-best-practices/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill launching-ec2-instance-with-best-practices -a cursor2Вручную: положить файлы
.cursor/skills/launching-ec2-instance-with-best-practices/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aws/agent-toolkit-for-aws launching-ec2-instance-with-best-practices2Вручную: положить файлы
.github/skills/launching-ec2-instance-with-best-practices/SKILL.md1Через Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill launching-ec2-instance-with-best-practices -a gemini-cli2Командой платформы
gemini skills install https://github.com/aws/agent-toolkit-for-aws --path skills/specialized-skills/ec2-skills/launching-ec2-instance-with-best-practicesВручную: положить файлы
.devin/skills/launching-ec2-instance-with-best-practices/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill launching-ec2-instance-with-best-practices -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о launching-ec2-instance-with-best-practices
Как установить launching-ec2-instance-with-best-practices в Claude Code?
Выполните npx skills add aws/agent-toolkit-for-aws --skill launching-ec2-instance-with-best-practices -a claude-code, затем повторите эту команду ещё раз. После этого откройте ~/.claude/skills/launching-ec2-instance-with-best-practices/SKILL.md.
Что делает launching-ec2-instance-with-best-practices?
Скилл помогает запустить EC2 по процедуре с выбором AMI, настройкой сети, IAM, security group, зашифрованного gp3 и тегов. После старта он выполняет проверку и подсказывает варианты подключения.
Что проверить, если к EC2 не удаётся подключиться по SSH?
Проверьте, разрешает ли security group SSH с вашего IP, имеют ли права файла ключа значение 400 и запущен ли инстанс. Также можно использовать AWS Systems Manager Session Manager.
Исходный текст
SKILL.md · Apache-2.0
--- name: launching-ec2-instance-with-best-practices description: Launches an EC2 instance with secure, cost-efficient defaults including AMI selection, burstable instance sizing, least-privilege IAM roles, hardened security groups, encrypted EBS volumes, and comprehensive tagging. Use when deploying new EC2 instances following AWS best practices for security and cost optimization. version: 1 --- # Launching EC2 Instances with Best Practices ## Overview Domain expertise for launching EC2 instances with sensible defaults optimized for security, cost-efficiency, and operational best practices. Covers AMI selection, instance type recommendation, network configuration, IAM role creation, security group hardening, storage configuration, tagging strategy, and post-launch verification. ## Launch an EC2 instance To launch a fully configured EC2 instance with best-practice defaults, follow the procedure exactly. See [EC2 instance launch procedure](references/launch-ec2-instance-with-best-practices.md). The procedure handles: - Intelligent defaults based on workload type and environment - Network validation (VPC, subnet, public/private placement) - AMI selection with architecture compatibility checks - Least-privilege IAM roles for required AWS service access - Hardened security groups with minimal port exposure - Encrypted gp3 storage with environment-appropriate retention - Comprehensive tagging for cost tracking and organization - Post-launch verification and connection instructions ## Troubleshooting ### Insufficient instance capacity Try a different availability zone or instance type (e.g., t3a instead of t3). See the full troubleshooting guide in the [launch procedure](references/launch-ec2-instance-with-best-practices.md). ### Instance immediately terminates Check console output with `aws ec2 get-console-output`. Verify EBS volume size is sufficient and AMI is compatible with the instance type. ### Cannot connect via SSH Verify the security group allows SSH from your IP, key file permissions are `400`, and the instance is running. Consider AWS Systems Manager Session Manager as an alternative.
© aws · Apache-2.0 · aws/agent-toolkit-for-aws