This is your comprehensive reference for managing EC2 instances, from basic launches to advanced patterns like mixed Spot and On-Demand Auto Scaling Groups. The skill triggers on practical signals like "spin up a server", SSH connection problems, or mentions of instance types (t3, m5, c7g), so it catches real-world scenarios even when you don't explicitly say "EC2". It covers the full lifecycle: launching instances with proper IMDSv2 configuration, creating AMIs, attaching IAM roles, setting up security groups, and cost optimization through Spot Instances and Graviton. The troubleshooting section is solid for debugging connectivity issues and the SSM Parameter Store pattern for AMI lookups is the right way to avoid hardcoded IDs.

skills.sh installs
136
GitHub stars
1.2K
last updated
Jun 8, 2026

Install

$ npx -y skills add itsmostafa/aws-agent-skills --skill ec2 --agent claude-code

Installs into .claude/skills of the current project.

Files

AWS EC2

Amazon Elastic Compute Cloud (EC2) provides resizable compute capacity in the cloud.

Advanced patterns (Auto Scaling, Spot Fleets, Session Manager, Instance Connect, IMDS, Placement Groups, scheduled scaling): see instance-management.md.

Table of Contents

Core Concepts

Instance Types

CategoryExampleUse Case
General Purposet3, m6i, t4g (Graviton)Web servers, dev environments
Compute Optimizedc6i, c7g (Graviton)Batch processing, gaming
Memory Optimizedr6i, r7g (Graviton)Databases, caching
Storage Optimizedi3, d3Data warehousing
Acceleratedp4d, g5ML, graphics

Graviton (ARM) instances (t4g, m7g, c7g, r7g) are ~20% cheaper than x86 equivalents for the same performance — worth considering for new workloads.

Purchasing Options

Sponsors

Details

Repository
github.com/itsmostafa/aws-agent-skills
Categories
AI & Agent Building, Cloud & Infrastructure
License
MIT
First seen
Jun 11, 2026

More from itsmostafa/aws-agent-skills

All 18
1buiducnhat avataras-fixbuiducnhat/agent-skillsas fix135skills.sh installs
2hoodini avatarrailwayhoodini/ai-agents-skillsDeploy applications on Railway platform. Use when deploying containerized apps, setting up databases, configuring private networking, or managing Railway projec135skills.sh installs
3lubusin avatarfrappe-app-developmentlubusin/agent-skillsfrappe app development135skills.sh installs
4paulrberg avatardelayed-commandpaulrberg/agent-skillsThis skill should be used when the user asks to "run npm test after 30 minutes", "git commit after 1 hour", "wait 2h then deploy", "sleep 45m and run build", "a135skills.sh installs
5gohypergiant avatarskill-judgegohypergiant/agent-skillsEvaluate Agent Skill design quality against official specifications and best practices. Use when reviewing, auditing, or improving SKILL.md files and skill pack134skills.sh installs
6hoodini avatarshabbat-timeshoodini/ai-agents-skillsAccess Jewish calendar data and Shabbat times via Hebcal API. Use when building apps with Shabbat times, Jewish holidays, Hebrew dates, or Zmanim. Triggers on S134skills.sh installs