Instance Types, AMIs & Storage
Decode names like m7g.large, pick an operating system image, and attach disks.
1 min read
Instance types
An instance type is a fixed recipe of CPU, memory, and networking. The name tells you a lot:
Text
m7g.large
│││ └── size: nano, micro, small, medium, large, xlarge, 2xlarge …
││└───── extra attributes: g = AWS Graviton (ARM) processor
│└────── generation: higher is newer (and usually better value)
└─────── family: what it's tuned for| Family | Tuned for | Example uses |
|---|---|---|
| t | Burstable, low baseline CPU | Small websites, dev boxes |
| m | General purpose (balanced) | Most web apps and APIs |
| c | Compute (more CPU) | Batch processing, video encoding |
| r | Memory (more RAM) | In-memory caches, big databases |
| g / p | GPUs | ML training and inference, graphics |
Tip
Graviton (g) instances often give better price-performance for Linux workloads. Try them if your software
runs on ARM.
AMIs: the starting image
An Amazon Machine Image (AMI) is a template for the instance's disk: the OS plus any preinstalled software. Use AWS-provided images like Amazon Linux or Ubuntu, Marketplace images, or create your own from a configured instance.
Storage
- EBS volumes: network-attached disks that persist when you stop the instance. You can snapshot them for backups.
- Instance store: very fast local disks on some types, but data is lost when the instance stops.
Key takeaways
- Instance type names encode family, generation, attributes, and size.
- An AMI is the disk template (OS + software) an instance boots from.
- EBS volumes persist across stops. Instance store data does not.
Check your understanding
Pick an answer to see the explanation.
1. In c7g.xlarge, what does the 'c' tell you?
2. Which storage keeps your data when the instance is stopped?