ec2
涵盖从实例创建到自动化运维的场景,适合云基础设施管理与成本优化。
需 AWS 权限,操作可能产生资源费用或意外销毁实例导致停机。
管理 AWS EC2 实例、镜像、存储与自动伸缩等生命周期的技能集合。
能帮你操作 EC2 的整个生命周期:开关机、调配实例类型、管理 AMI、EBS、Security Group 和 Auto Scaling 等。遇到要快速部署服务器、SSH 连不上、要节省成本用 Spot 或优化网络/布局(Placement Group)时会用到。还支持 Session Manager、实例自动化脚本与扩缩容策略,方便把运维流程自动化并降低人工干预。
▸ 展开 SKILL.md 英文原文
AWS EC2 virtual machine management — instances, security groups, key pairs, AMIs, EBS volumes, Auto Scaling Groups, Spot Instances, Session Manager, placement groups, and instance lifecycle automation. Trigger on ANY of these, even when EC2 isn't named explicitly: - Launching or provisioning: "spin up a server", "create a VM", "new instance", "run-instances", mention of instance types (t3, m5, c5, r6, g5, p4d, t4g, c7g, etc.) - SSH / connectivity problems: "connection refused", "connection timed out", "permission denied publickey", "can't connect to my instance", "SSH not working" - Instance management: resize, stop, start, terminate, reboot, change instance type - Cost optimization: stop dev instances overnight, save money on EC2, spot vs on-demand, reserved instances - Auto Scaling: ASG, launch template, mixed instances policy, scale to zero, scheduled scaling - Spot Instances: spot fleet, spot interruption, capacity-optimized, price-capacity-optimized - AMIs and backups: create imag
帮我安装这个 skill:https://raw.githubusercontent.com/itsmostafa/aws-agent-skills/main/skills/ec2/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/itsmostafa/aws-agent-skills/main/skills/ec2/SKILL.md"# 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](instance-management.md). ## Table of Contents - [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references) ## Core Concepts ### Instance Types | Category | Example | Use Case | |----------|---------|----------| | General Purpose | t3, m6i, t4g (Graviton) | Web servers, dev environments | | Co