К основному содержанию
скилл CX Codex

aws-compute — скилл для Claude Code: EC2, ASG и Systems Manager

Скилл для работы с Amazon EC2: подбор типа инстанса, launch templates, Auto Scaling, IMDSv2 и доступ без SSH через Systems Manager.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add aws/agent-toolkit-for-aws --skill aws-compute -a claude-code
Открыть на GitHub

Что делает aws-compute

Скилл закрывает вопросы по виртуальным машинам EC2: как выбрать семейство и размер, когда брать Graviton или GPU, чем отличаются burstable T-инстансы от фиксированных, что хранить на instance store, а что на EBS. Отдельно разобраны launch templates, Auto Scaling groups со scaling policies, instance refresh, mixed instances, Spot и warm pools, а также IMDSv2, placement groups, Elastic IP и жизненный цикл AMI.

Внутри — справочники по подбору инстансов, провижинингу, автоскейлингу, Systems Manager и управлению AMI, плюс таблица симптомов с быстрыми исправлениями. Лучше всего работает с AWS MCP server, но и с одним AWS CLI запустится: жёсткой зависимости нет.

Есть границы. Lambda, ECS/Fargate, EKS, проектирование VPC/ALB/NLB и написание IAM-политик скилл не покрывает. Для одиночного безопасного запуска инстанса он советует другой скилл — launching-ec2-instance-with-best-practices. И помните: launch configurations устарели и не поддерживают актуальные типы инстансов, поэтому для каждой новой ASG нужен launch template.

Какие задачи решает

  • выбрать тип инстанса под нагрузку и не переплатить за surplus CPU credits
  • собрать launch template с включённым IMDSv2
  • настроить ASG, который реально заменяет нездоровые инстансы
  • разобраться, почему SSH отваливается по таймауту или отказывает
  • подключиться к приватному инстансу без бастиона через Session Manager

Примеры запросов агенту

  • Подбери тип инстанса под веб-приложение на Arm64 и объясни выбор
  • Собери launch template с обязательным IMDSv2 и ASG с проверкой здоровья по балансировщику
  • Инстанс завис в Pending:Wait и его убило через час — что произошло?

Как установить aws-compute

1Через Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill aws-compute -a claude-code

2Вручную: положить файлы

~/.claude/skills/aws-compute/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/aws-compute/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о aws-compute

Как установить aws-compute в Claude Code?

Выполните npx skills add aws/agent-toolkit-for-aws --skill aws-compute -a claude-code, затем проверьте, что файл появился по пути ~/.claude/skills/aws-compute/SKILL.md.

Что делает скилл aws-compute?

Помогает создавать, масштабировать и обслуживать инстансы EC2: подбор типа, launch templates, Auto Scaling groups, IMDSv2, Elastic IP, AMI и операции Systems Manager вроде Session Manager и Patch Manager.

Нужен ли AWS MCP server для работы скилла?

Нет, жёсткой зависимости нет. С AWS MCP server опыт лучше, но с одним AWS CLI скилл тоже работает.

Исходный текст

SKILL.md · Apache-2.0
---
name: aws-compute
description: "Provisions, scales, and operates Amazon EC2 virtual-machine workloads: instance-type selection (Graviton/Arm64, burstable T credits, GPU, instance store vs EBS), launch templates, Auto Scaling groups (scaling policies, instance refresh, mixed instances, Spot, warm pools, lifecycle hooks), IMDSv2, placement groups, Elastic IPs, AMI lifecycle, and Systems Manager fleet operations (Session Manager, Run Command, Patch Manager). Applies to EC2 instance and fleet questions, InsufficientInstanceCapacity, CPU-credit/surplus charges, IMDSv2 401s, instances stuck in Pending:Wait, ASG not replacing unhealthy instances, status-check failures, SSH refused/timed out, or instances missing as SSM managed nodes. For a single secure instance launch, the launching-ec2-instance-with-best-practices skill is more appropriate; for instance profiles, see setting-up-ec2-instance-profiles; for Image Builder, see amazon-ec2-image-builder. Does NOT cover Lambda, ECS/Fargate, EKS, VPC/ALB/NLB design, or IAM policy authoring."
metadata:
  version: "2"
---

# Amazon EC2 Compute

Best experience with the AWS MCP server; also works with the AWS CLI alone — no hard dependency on either.

## Critical Warnings

**Launch configurations are deprecated** and do not support current EC2 instance types; new accounts cannot create them. Use launch templates for every new Auto Scaling group. See [auto-scaling.md](references/auto-scaling.md).

**ASGs ignore ELB health checks by default**: An Auto Scaling group only uses EC2 status checks unless you set `--health-check-type ELB`. Without it, instances failing the load balancer's health check stay in service forever. See [auto-scaling.md](references/auto-scaling.md).

**IMDSv2 hop limit breaks containers**: the default `HttpPutResponseHopLimit` of 1 makes the IMDSv2 token PUT response fail to reach a containerized process (the extra hop exceeds the response TTL), so the token request times out. Set `HttpPutResponseHopLimit=2` for bridge/awsvpc container workloads. (If IMDSv2 is *required*, a subsequent tokenless GET returns `401`; if optional, it silently falls back to IMDSv1.) See [provisioning.md](references/provisioning.md).

**T3/T3a/T4g default to unlimited mode**: Unlike T2 (standard), these burst without throttling but bill surplus CPU credits when 24h-average CPU exceeds baseline — a silent cost leak. See [instance-selection.md](references/instance-selection.md).

**Instance store is ephemeral**: Data on instance store volumes is lost on stop, hibernate, terminate, instance-type change, and host failure — it survives only a reboot. Put anything durable on EBS/EFS/S3. See [instance-selection.md](references/instance-selection.md).

## Which do you need?

| If you're deciding... | Guidance |
|-----------------------|----------|
| Instance family / size / Graviton / GPU / burstable | [instance-selection.md](references/instance-selection.md) — start with the workload→family table |
| How to define instances once and reuse (launch template) | [provisioning.md](references/provisioning.md) |
| How to run many instances that scale automatically | [auto-scaling.md](references/auto-scaling.md) |
| How to access/patch/manage instances without SSH keys | [systems-manager.md](references/systems-manager.md) |

## Quick Navigation

| You want to... | Go to |
|----------------|-------|
| Pick an instance type, Graviton vs x86, burstable credits, GPU, instance store vs EBS | [instance-selection.md](references/instance-selection.md) |
| Create a launch template, user data, key pairs, IMDSv2, placement groups, Elastic IPs | [provisioning.md](references/provisioning.md) |
| Set up or fix an Auto Scaling group, scaling policies, instance refresh, Spot, lifecycle hooks | [auto-scaling.md](references/auto-scaling.md) |
| Get SSH-less access, patch a fleet, or fix an instance not showing as a managed node | [systems-manager.md](references/systems-manager.md) |
| Create, share, or retire (deprecate/disable/deregister) an AMI | [ami-management.md](references/ami-management.md) |
| Fix something broken (can't connect, status-check fail, capacity error, stuck instances) | [troubleshooting.md](references/troubleshooting.md) |

## Common Workflows

**"Stand up an autoscaling web fleet"** → Create a launch template (AMI, type, IMDSv2), then an ASG referencing it with `--health-check-type ELB` and a target-tracking policy, see [auto-scaling.md](references/auto-scaling.md). For the public entry point, secure the load balancer (TLS/ACM, WAF, security response headers) per the Security Considerations below and the load-balancer notes in [auto-scaling.md](references/auto-scaling.md) — the load-balancer build itself belongs to `aws-networking`.

**"Roll out a new AMI to my fleet"** → New launch template version → instance refresh; pin a numeric launch-template version so rollback works, see [auto-scaling.md](references/auto-scaling.md).

**"Connect to a private instance without a bastion"** → Give the instance SSM permissions (an instance profile with `AmazonSSMManagedInstanceCore`, or account-level DHMC) plus a network path, then use Session Manager, see [systems-manager.md](references/systems-manager.md).

**"Cut EC2 cost"** → Right-size (burstable vs fixed-performance), Graviton where the app supports Arm64, Spot with `price-capacity-optimized` for fault-tolerant fleets, release idle Elastic IPs, see [instance-selection.md](references/instance-selection.md).

## Troubleshooting

| Symptom | Likely cause | Quick fix |
|---------|-------------|-----------|
| SSH "Connection timed out" | Network path (SG/NACL/route/no public IP) | Open TCP 22 from your IP; check route to IGW; verify public IP — see [troubleshooting.md](references/troubleshooting.md) |
| SSH "Connection refused" | Host: sshd down or still booting | Wait for boot; check sshd/port via Session Manager or serial console |
| `InsufficientInstanceCapacity` | AWS lacks capacity of that type in the AZ (NOT a quota) | Try another AZ / instance type / retry; don't request a quota increase |
| `InstanceLimitExceeded` | vCPU quota reached (this IS a quota) | Request a Service Quotas increase for the instance family |
| ASG never replaces LB-unhealthy instances | Health check type still EC2 | Set `--health-check-type ELB` |
| Instances stuck in `Pending:Wait`, terminated after ~1h | Lifecycle hook never completed (heartbeat 3600s, default ABANDON) | Call `complete-lifecycle-action` CONTINUE, or set DefaultResult CONTINUE |
| System status check failed | AWS host/hardware | Stop/start to migrate to new hardware (reboot won't) |
| Instance status check failed | Instance OS/network config | Reboot or fix the OS/network config |

Full tables and more errors in [troubleshooting.md](references/troubleshooting.md).

## Security Considerations

- **Enforce IMDSv2** (`HttpTokens=required`) on launch templates to block SSRF-based credential theft; set the account-level default per Region (applies to new launches only).
- **Prefer Session Manager over inbound SSH** — no open port 22, no key management, and a CloudTrail record of session API calls; enable Session Manager session logging to CloudWatch Logs/S3 (off by default) to capture the in-session commands themselves — see [systems-manager.md](references/systems-manager.md).
- **Use instance profiles, never embedded credentials**; scope the role to least privilege.
- **Encrypt EBS/AMIs**; to share an encrypted AMI cross-account, re-encrypt under a customer-managed KMS key (the default `aws/ebs` key can't be shared).
- **Enable CloudTrail** in all Regions to audit EC2/ASG/SSM API activity, and alarm on sensitive actions (security-group changes, `RunInstances`/`TerminateInstances` from unexpected principals) so unauthorized changes surface.
- **For public-facing web fleets**, encrypt traffic in transit with an ACM certificate on the load balancer's HTTPS listener and add AWS WAF for defense in depth against common web exploits — the load-balancer/WAF setup itself lives in `aws-networking`.
- For hardening beyond this guidance, see [AWS EC2 security best practices](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security.html) and CIS Benchmarks for the guest OS.

## Not Covered By This Skill

- **Launching a single hardened instance with best-practice defaults** → use the `launching-ec2-instance-with-best-practices` skill
- **Creating IAM roles / instance profiles for EC2** → use the `setting-up-ec2-instance-profiles` skill
- **Building AMIs with an Image Builder pipeline** → use the `amazon-ec2-image-builder` skill
- **Lambda / serverless** → `aws-serverless`; **ECS/Fargate** → `aws-containers`; **EKS/Kubernetes** → `kubernetes`
- **VPC, subnets, ALB/NLB, endpoints** → `aws-networking` or built-in knowledge
- **IAM policy logic and CloudWatch dashboards/agent setup** → `aws-iam`, `aws-observability`

© aws · Apache-2.0 · aws/agent-toolkit-for-aws

Похожие скиллы

Всё по теме «Облака: AWS, Azure, GCP» →
caveman-manage JuliusBrussee Проверяет состояние и результаты экспериментов Caveman Cloud, предлагает одно действие или блокирует рискованный запрос. Нужен перед запуском, одобрением, отменой или откатом. CX Codex +1 104 200установок workers-best-practices cloudflare Скилл настраивает ИИ на проверку продакшен-кода Cloudflare Workers по актуальным правилам рантайма, типам Wrangler и антипаттернам. CX Codex +1 126 100установок cloudflare-email-service cloudflare Скилл для работы с Cloudflare Email Sending и Email Routing: помогает настроить отправку и приём писем в Workers. CX Codex +1 102 300установок firebase-basics официальный google Скилл настраивает Firebase CLI, помогает войти в аккаунт, создать или выбрать проект и скачать конфигурацию Android или iOS. CX Codex 14 100установок cloudflare-one cloudflare Помогает агенту проектировать, настраивать и разбирать развёртывания Cloudflare One Zero Trust и SASE. Пригодится, когда нужно спланировать Access, Gateway или туннели без похода в документацию вручную. CX Codex +1 93 100установок cloudflare-one-migrations cloudflare Помогает спланировать переход с VPN, SWG или SASE на Cloudflare One: сопоставляет политики, находит пробелы и расписывает порядок выката. CX Codex +1 89 500установок

Из того же набора133

aws-lambda-durable-functions Скилл учит ИИ писать долгоживущие функции AWS Lambda с сохранением состояния до одного года. Пригодится при сборке серверлесс-пайплайнов и пошаговых сценариев для ИИ-агентов. CX Codex +1 5 800установок aws-lambda-microvms Скилл для сборки, запуска и отладки AWS Lambda MicroVMs на базе Firecracker с изоляцией сессий до 8 часов и возобновлением работы из снимков памяти. CX Codex +1 5 600установок aws-database Разбирает задачу по данным и подсказывает, какой сервис AWS подойдёт: реляционный, key-value, документный, графовый или кэш. CX Codex +1 5 700установок aws-lambda-managed-instances Помогает решить, стоит ли переводить Lambda-нагрузку на Managed Instances, и настраивает деплой. Полезен при длинных асинхронных задачах и ESM-вызовах. CX Codex +1 5 600установок amazon-opensearch-service Направляет миграцию, развёртывание, векторный поиск и анализ логов в Amazon OpenSearch Service и Serverless. Помогает строить запросы и расследовать сбои через агента. CX Codex +1 5 500установок querying-aws-s3 Скилл для запросов к метаданным S3 через Athena SQL: считает объекты, ищет недавние загрузки и удаления, разбирает классы хранения. CX Codex +1 5 500установок amazon-aurora-postgresql Скилл для работы с Aurora PostgreSQL: создаёт кластеры, считает ACU и сравнивает варианты экономии. Полезен, когда база живёт в AWS и нужны действия, а не советы. CX Codex +1 5 600установок amazon-elasticache Скилл маршрутизирует задачи по ElastiCache: от выбора движка и настройки кэша до моделирования данных, GenAI-сценариев и мониторинга. CX Codex +1 5 400установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой