Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AWS EC2

EC2 instance types

Instance types names are composed of 4 components

  1. Instance family: The primary purpose of the instance.
  2. Generation: Version number, higher is newer, faster and usually cheaper for the same performance
  3. Additional capabilities: Information about Additional hardware capabilities. Like CPU brand, networking optimization, ...
  4. Service related prefix/suffix: The service owning the instance (e.g. rds, search, cache...)

Common Instance families

FamilyLetterWhat It's Optimized ForCommon Use Cases
General PurposeT (Burstable)Low baseline CPU with "burst" capability.Dev/test servers, blogs, small web apps.
General PurposeM (Main / Balanced)A balanced mix of CPU, Memory, and Network.Most applications, web servers, microservices.
Compute OptimizedC (Compute)High CPU power relative to memory (RAM).Batch processing, media transcoding, game servers.
Memory OptimizedR (RAM)A large amount of Memory relative to CPU.Databases (RDS), in-memory caches (ElastiCache).
Storage OptimizedI / D (I/O, Dense)Extremely high-speed local disk I/O.NoSQL databases, search engines (Elasticsearch).
Accelerated ComputingG / P (Graphics / Parallel)Hardware accelerators (GPUs).AI/Machine Learning, 3D rendering.

Common Additional capabilities

Capability LetterMeaning (Processor or Feature)
gGraviton (AWS's custom ARM processors)
aAMD processors
iIntel processors (often omitted if default)
dLocal NVMe Storage (fast "instance store" drives)
nNetwork Optimized (higher network bandwidth)
zHigh Frequency (very fast single-core CPU)