ec2-architect
Architect-level virtual machine design — instance family and sizing, AMI and golden-image lifecycle, placement and tenancy, storage selection (EBS types, instance store), autoscaling groups with health checks, and the patching and replacement model that keeps a VM fleet from rotting. Use when workloads run on VMs rather than containers or functions.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ec2-architect
- license
- MIT
- metadata
- { "crusor-path": "cloud-and-devops-architect/compute-architect/ec2-architect", "crusor-domain": "cloud-and-devops-architect", "crusor-origin": "original", "crusor-sources": "docs.aws.amazon.com/AWSEC2/latest/UserGuide; docs.aws.amazon.com/ebs/latest/userguide; cloud.google.com/compute/docs", "crusor-triggers": "ec2, virtual machine, ami, instance type, ebs, autoscaling group, spot instance, golden image, vm fleet, instance store", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level virtual machine design — instance family and sizing, AMI and golden-image lifecycle, placement and tenancy, storage selection (EBS types, instance store), autoscaling groups with health checks, and the patching and replacement model that keeps a VM fleet from rotting. Use when workloads run on VMs rather than containers or functions.
- compatibility
- AWS EC2; GCE/Azure VM analogues
03 SKILL.md 正文
EC2 / VM Architect
VMs are pets you can replace. The architecture question is whether the replacement path is automated — because the instance will fail, and patching decides how often.
When to use
- Legacy or stateful workloads that cannot containerise yet.
- Licensed software, kernel-level agents, GPU training.
- Burstable or specialised hardware needs.
When NOT to use
- Stateless HTTP services →
kubernetes-architectorcompute-architect/serverless-architect. - Anything where the OS is not your concern.
Decision 1 — Instance choice
| Need | Family |
|---|---|
| general web/app | general purpose (m/c) |
| CPU-bound | compute optimised (c) |
| memory-heavy caches, JVM | memory optimised (r/x) |
| GPU training/inference | accelerated (p/g) |
| rare, spiky, tolerant of interruption | spot |
| sustained baseline | reserved/savings plan |
- Size to measured p95, not to the vendor's "recommended".
- Graviton/ARM gives real price-performance wins where the stack supports it.
- Spot for batch and stateless workers with interruption handling; never for stateful single instances.
Decision 2 — Images
- Golden images built by pipeline: base OS, patches, agents, no secrets, no application config baked where it varies.
- Immutable: deploy a new AMI, replace instances, never patch in place as the normal path.
- Image lifecycle: build weekly, scan for CVEs, deprecate old, keep N-1.
- Instance metadata service v2 enforced; no credentials on the image.
Decision 3 — Storage
| Volume | Use |
|---|---|
| gp3 SSD | default; set IOPS/throughput explicitly |
| io2 | high, consistent IOPS (databases) |
| st1/sc1 | throughput workloads, logs |
| instance store | ephemeral scratch, caches — lost on stop |
- Snapshots scheduled and copied cross-region for anything that matters.
- Encryption at rest by default with a customer-managed key.
- Delete-on-termination set deliberately; orphaned volumes are a silent bill.
Decision 4 — Scaling and availability
- Autoscaling group across ≥2 AZs, with ELB health checks (not just EC2 status).
- Scale on the metric that predicts load (queue depth, latency), not CPU alone.
- Warm pools or pre-baked images to cut boot time out of the scaling path.
- Lifecycle hooks for graceful drain before termination.
- Replacement-based patching: rolling replace with health gates, not SSH and
apt upgrade.
Decision 5 — Access and operations
- No SSH in the steady state: SSM Session Manager or equivalent, logged and IAM-gated.
- Host hardening baseline (CIS) applied by the image build and verified.
- Centralised logs and metrics from the agent, not from a login.
- Inventory: every instance tagged with owner, service, environment, and image version.
Failure modes at scale
- Hand-patched snowflakes; nobody dares rebuild the oldest one.
- Single-AZ autoscaling group; an AZ event takes the service down.
- gp2 volumes silently throttling; latency blamed on the app.
- Orphaned volumes and snapshots costing more than the instances.
- SSH open to the world because the image build was broken.
Verification receipts
- Instance inventory with family, size, image version, owner.
- Image build pipeline output, scanned and versioned.
- AZ-failure test: instances replaced in the surviving AZs.
- Graceful drain observed during a scaling event.
- Cost report: instances vs volumes vs snapshots, orphaned resources removed.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.