EBS volumes and snapshots
Network block storage for EC2: volume types and what you provision, zonal scope, resizing, incremental snapshots, restore behaviour and encryption.
EBS volumes and snapshots
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- An EBS volume is a network-attached disk that lives in one Availability Zone and persists independently of the instance.
- gp3 is the sensible default: size, IOPS and throughput are set separately, with 3,000 IOPS and 125 MiB/s included.
- Instance store is local, fast and temporary. Its data is lost when the instance stops or terminates.
- Snapshots are incremental, Regional and the way to move a volume between zones or Regions.
- A volume restored from a snapshot loads blocks lazily, so first reads are slow unless you pay to initialize it.
- You can grow a volume while it is in use but cannot shrink it, and you still have to grow the filesystem.
A disk that outlives its server
Servers are replaceable. Data usually isn’t. If the disk is inside the machine, losing the machine loses both.
Elastic Block Store (EBS) separates them. A volume is a block device reached over the network, which the instance formats and mounts like any disk. Detach it, attach it to another instance, and the bytes are still there. Think of an external drive, with a very good cable.
Two limits follow from that. A volume lives in one Availability Zone and attaches only to instances there. And it normally attaches to one instance at a time; io1/io2 Multi-Attach allows up to 16 in a zone, but then your filesystem must be cluster-aware.
Some instance types also have instance store: disks physically in the host. Very fast, and gone on stop or termination. Use it for caches and scratch space.
Volume types
| Type | Media | For | Limits per volume |
|---|---|---|---|
gp3 |
SSD | almost everything | 64 TiB, 80,000 IOPS, 2,000 MiB/s |
gp2 |
SSD | older default | 16 TiB, 16,000 IOPS |
io2 Block Express |
SSD | demanding databases, higher durability | 64 TiB, 256,000 IOPS, 4,000 MiB/s |
st1, sc1 |
HDD | large sequential data, cold data | throughput oriented, not boot volumes |
IOPS counts operations per second, throughput counts bytes. A database doing many small reads cares about the first, a log processor about the second.
gp3 includes 3,000 IOPS and 125 MiB/s, and you buy more of either separately. gp2 ties performance to size, with small volumes bursting on credits, so people used to over-size disks to get speed. In eu-west-1 (November 2026) gp3 storage is 0.088 USD per GB-month against 0.11 for gp2.
The limits above are maxima for the volume. The instance has its own EBS bandwidth and IOPS ceiling, often much lower on small sizes. Check both before buying performance.
Changing a live volume
Elastic Volumes lets you increase size, change type or adjust performance without detaching. A modification can take hours, and a volume may be modified up to four times in 24 hours. Size only goes up. Afterwards, extend the partition and filesystem yourself.
Snapshots
A snapshot is a point-in-time copy stored by AWS across the Region. Snapshots are incremental: each stores only blocks changed since the previous one, yet each restores the whole volume.
aws ec2 create-snapshot --volume-id vol-... --description nightly
aws ec2 create-volume --availability-zone eu-west-1b --snapshot-id snap-... --volume-type gp3
That second command is how you move a disk between zones. Copy a snapshot to move between Regions or accounts.
A snapshot of a busy volume is crash-consistent: what you’d find after pulling the power. Databases recover from that, but pause or flush the application if you need more, and snapshot multiple volumes together.
Restores are lazy. The volume is usable at once but each block arrives from snapshot storage on first use. Fast snapshot restore or a provisioned initialization rate avoids that, at extra cost.
Snapshots accumulate quietly, at 0.05 USD per GB-month there in the standard tier. Automate creation and expiry with Data Lifecycle Manager or AWS Backup. An archive tier is cheaper for copies kept 90 days or more. And test a restore; an untested backup is a hope.
Encryption
EBS encryption with a KMS key covers data at rest, data moving to the instance, and snapshots. Turn on encryption by default, a per-Region setting:
aws ec2 enable-ebs-encryption-by-default
It does not change existing volumes. To encrypt one, copy its snapshot with encryption and create a new volume.
About the video
The embed is Rahul Wagh’s “Ultimate AWS EBS Volume Guide”, June 2024, 34 minutes. Its chapters cover volume types, creating, attaching, configuring and mounting a volume, resizing, creating a snapshot and using it. Its type limits predate the late 2025 increases to gp3, so use the table above. I judged it from chapters and description, since transcripts couldn’t be fetched. The re:Invent talk in deeper is about gp3 in particular.
What was run: volume, snapshot, restore and encryption-default calls ran against moto, a local emulator, where snapshots complete instantly. moto also allowed a volume to be shrunk, which EBS does not. Limits are from AWS documentation and prices from AWS’s public price data, checked in November 2026.
Where this fits
You have compute and disks. Next is how you pay for them: EC2 pricing, Spot and Savings Plans.
Check yourself
An instance in eu-west-1a fails. Can you attach its data volume to an instance in eu-west-1b?
Not directly, because a volume is zonal. Snapshot it and create a new volume from the snapshot in eu-west-1b.
You delete the first of five snapshots of a volume. Are the other four still restorable?
Yes. AWS keeps any blocks that later snapshots still reference, and removes only data that nothing else uses.
You enlarged a volume from 100 to 200 GiB but df still shows 100. Why?
The block device grew but the partition and filesystem did not. Extend them with the operating system's tools.
A database restored from a snapshot is very slow for the first hour. Why?
Blocks are fetched from snapshot storage on first access. Use fast snapshot restore or a provisioned initialization rate, or read all blocks before taking traffic.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.