AWS in 1 Min · Episode 104

EC2 instance store vs EBS: which disk keeps your data

Which disk survives a stop. Watch the one-minute video, then read the details.

David Gomez1:09 video · 3 min read

"Every EC2 disk keeps your data." Not quite. An EC2 instance can use two very different kinds of disk, and one of them is wiped every time the instance stops. Teams find this out the hard way: someone stops a server to save money over the weekend, starts it on Monday, and the local disk is empty.

Two kinds of disk

An EC2 instance can store data on:

  • Instance store: disks that are physically attached to the host computer your instance runs on.
  • Amazon EBS volumes: block storage that reaches your instance over the network and lives on its own.

Both look like an ordinary drive to the operating system. The difference is what happens to the data when the instance's life changes.

Instance store: fast, free, temporary

Instance store is ideal for buffers, caches, scratch data and anything you can rebuild. It has real advantages:

  • It is local to the host, so it is very fast (many current types use NVMe SSDs).
  • There is no additional charge: it is included in the price of the instance.

But it is temporary storage. AWS documents exactly what survives:

  • Reboot: the data persists.
  • Stop, hibernate or terminate: the data is gone. AWS cryptographically erases every block.
  • Changing the instance type or a failure of the underlying disk: the data does not persist.

You also cannot detach an instance store volume and attach it to another instance, and you can only add it at launch. Not every instance type has one: check the type's specs (see EC2 instance types).

EBS: the disk that stays

An EBS volume persists independently from the running life of the instance:

  • Stop and start the instance, and the data is still there.
  • Take snapshots to back it up, and restore them into new volumes.
  • Detach a volume and attach it to another instance, as long as both are in the same Availability Zone.
  • Grow it, or change its type and performance, while it is in use (current-generation volumes).

That is why EBS is the default for boot disks, databases and anything you cannot afford to lose. You pay for the volume size you provision (plus any extra performance you choose), whether the instance is running or not.

A common mistake

Putting a database, uploads or logs on instance store "because it's faster", then stopping the instance. If data matters, keep it on EBS, in Amazon S3 or in a shared file system, and treat the local disk as a cache you can refill. Fleets behind an Auto Scaling group can use instance store safely when every node can rebuild its cache from a durable source.

Where AI fits

Large GPU instances, such as the P5 family, come with several terabytes of local NVMe instance store. That is excellent free scratch space for AI work: cache the training dataset, unpack shards, or stage model weights there for fast reads. Just remember the rule: anything you could not rebuild must leave the box. Write training checkpoints to S3 (or to EBS), so a stopped Spot instance or a failed host costs you minutes of training, not days.

Quick recap

  • Instance store is physically attached, very fast and included in the price, but it is erased on stop, hibernate and terminate.
  • EBS survives stops, supports snapshots, and can move between instances in the same Availability Zone.
  • Keep only rebuildable data on instance store; checkpoints and anything valuable go to S3 or EBS.
AWS in 1 Min #104 · 1:09

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS