Skip to main content
Skip to main content
Still in beta — questions, comments or suggestions? aramb@aramb.dev

EBS vs Instance Store

Understand the differences between persistent (EBS) and temporary (Instance Store) block storage for EC2.

15 min
Introductory
AWS Free TierFREE TIER

All services used in this lesson are covered by the AWS Free Tier.

AWS Services Used

Amazon EBS30 GB of General Purpose (SSD) storage is freeInstance StoreIncluded with certain instance types (no extra charge)

Learning outcomes

By the end of this lesson, you will be able to:

  1. Explain the difference between Amazon EBS and instance store.
  2. Describe which option is persistent and which is temporary.
  3. Choose the right storage type for a given scenario.
  4. Explain why EBS is usually the safer default for important EC2 data.
  5. Understand where EBS snapshots fit into the picture.

How EC2 storage works

EBS is the persistent disk option for EC2. Instance store is the temporary disk option.

A simple memory rule:

  • EBS = keep it (Durable)
  • Instance Store = lose it when the instance lifecycle ends (Ephemeral)

1) What is Amazon EBS?

Amazon EBS (Elastic Block Store) provides high-performance block storage for EC2. You attach EBS volumes to an instance and use them just like a physical hard drive on a normal computer.

  • Persistence: An EBS volume survives even if you stop or terminate the instance.
  • Flexibility: You can increase its size or performance without restarting the server.
  • Backups: You can take Snapshots (point-in-time backups) and restore them to new volumes later.

2) What is Instance Store?

Instance store provides temporary block-level storage. Unlike EBS, which is a separate service, instance store comes from disks physically attached to the host computer that runs your EC2 instance.

  • Ephemeral: Data on an instance store volume lasts only during the life of the instance.
  • Loss Risk: If you stop, hibernate, or terminate the instance, all data on the instance store is lost.
  • Performance: Because the disks are physically attached, they offer very high speed and low latency.

Warning

The Termination Rule: If your instance stops or fails, your Instance Store data is gone. Never use Instance Store for the only copy of important data.


3) Side-by-Side Comparison

FeatureAmazon EBSInstance Store
TypeDurable network storageTemporary local storage
PersistencePersists after stopping/restartingLost after stopping/restarting
BackupsSupports SnapshotsNo native snapshot feature
PricingBilled by GB-monthIncluded in instance price
Best ForDatabases, OS disks, important filesCaches, scratch space, temp files

4) When to use which?

Use EBS when:

  • You are setting up a Root Disk (where the OS lives).
  • You have a Database that needs to keep its records safe.
  • You want to be able to Snapshot and restore your data.
  • You need your data to survive if you stop the instance to save money.

Use Instance Store when:

  • You need a fast Cache for temporary data.
  • You are using a Distributed Cluster where data is replicated across many nodes.
  • You have "scratch space" for video editing or data processing that can be easily recreated.

Micro-activity 1: Choose the Right Storage

Micro-Activity

Storage Decisions

Match the use case to the most appropriate storage type.

Examples

Choose one, then match it on the right

Characteristics

Select an example first

0 of 5 matched so far.

Micro-activity 2: Persistence Rules

Micro-Activity

Lifecycle Check

What happens to the data in these situations?

Examples

Choose one, then match it on the right

Characteristics

Select an example first

0 of 4 matched so far.


Summary

Amazon EC2 offers different storage options based on your needs. EBS is your durable, reliable friend for important data and OS disks. Instance Store is a specialized tool for high-speed, temporary tasks where you don't care if the data disappears.


Knowledge Check

Knowledge Check
1 / 5

Which storage option persists independently from the life of the EC2 instance?

Next lesson

Lesson 4.5: Elastic Load Balancing (ELB) Basics