Amazon EBS

Also known as: Amazon Elastic Block Store · Elastic Block Store

On this page 7

Amazon EBS (Amazon Elastic Block Store) is the AWS service that provides persistent block-level storage volumes for Amazon EC2 instances, presenting each volume to the operating system as a raw disk that can be formatted with a file system or used directly by a database. Within cloud storage, it occupies the block storage category, which sets it apart from object services such as S3 and from shared file services such as Amazon EFS.

An EBS volume lives in a single Availability Zone, is replicated within that zone to protect against hardware failure, and survives instance stops and restarts independently of the server it is attached to. Engineers choose a volume type that balances latency, throughput, IOPS and price, which makes Elastic Block Store the default storage foundation for boot disks, relational databases and transactional workloads in the Cloud.

How Amazon EBS delivers block storage

Amazon EBS delivers block storage by exposing network-attached volumes that the EC2 hypervisor presents to the guest as local devices. On modern Nitro-based instances, volumes appear as NVMe block devices, and the Nitro card handles the network traffic between the instance and the storage fleet, so the guest operating system sees an ordinary disk.

Each volume is divided into blocks that the instance reads and writes individually. Because the storage is decoupled from the compute host, a volume can be detached from one instance and attached to another in the same Availability Zone, and its data persists after the instance is stopped. By default, the root volume is deleted when an instance is terminated, while additional data volumes are retained unless the DeleteOnTermination flag is set.

Durability comes from automatic replication inside the Availability Zone. AWS states an annual failure rate of roughly 0.1 to 0.2 percent for most volume types and a substantially lower rate for io2 Block Express, which is far more reliable than a single physical disk but is not a substitute for backups. The following table lists the main building blocks of the service.

ComponentRoleKey property
VolumeBlock device attached to an EC2 instanceScoped to one Availability Zone
SnapshotPoint-in-time backup of a volumeIncremental, stored regionally
Fast snapshot restorePre-initializes volumes created from snapshotsRemoves first-read latency penalty
Multi-AttachShares one io1 or io2 volume among instancesRequires a cluster-aware file system
EncryptionProtects data at rest and in transit to the hostUses AWS KMS keys
Core components of Amazon EBS

EBS volume types and performance parameters

EBS volume types fall into two families: SSD-backed volumes optimized for small random I/O measured in IOPS, and HDD-backed volumes optimized for large sequential I/O measured in throughput. Choosing the wrong family is the most frequent cause of disappointing storage performance.

The general-purpose gp3 type lets engineers provision IOPS and throughput independently of capacity, starting from a baseline of 3,000 IOPS and 125 MiB/s. The older gp2 type ties performance to size and relies on a burst credit bucket, which can be exhausted under sustained load. The values below are typical published limits and may change as AWS revises the service.

Volume typeMediaTypical maximum performanceBest suited for
gp3SSDUp to 16,000 IOPS, 1,000 MiB/sBoot disks, most applications
gp2SSDUp to 16,000 IOPS with burst modelLegacy general workloads
io2 Block ExpressSSDUp to 256,000 IOPS, sub-millisecond latencyCritical databases
st1HDDUp to 500 MiB/s throughputLog processing, data warehouses
sc1HDDUp to 250 MiB/s throughputInfrequently accessed bulk data
Common EBS volume types compared

Volume performance is only half of the equation. Every EC2 instance type also has an EBS bandwidth limit, so a powerful volume attached to a small instance will be throttled by the instance rather than by the storage. Effective sizing therefore checks both the volume limit and the instance limit.

Amazon EBS compared with other cloud storage options

Amazon EBS differs from neighboring services mainly in its access model: it provides a block device to one instance at a time, whereas object and file services expose data through APIs or network file protocols to many clients. The comparison below clarifies when each option fits.

ServiceStorage modelAccess scopeTypical use
Amazon EBSBlockOne instance per volume, one zoneDatabases, boot volumes
Amazon EFSFile (NFS)Thousands of clients across zonesShared content, home directories
Amazon S3ObjectHTTP API from anywhereBackups, media, data lakes
Instance storeLocal blockOnly the host instanceCaches and scratch data
Block, file and object storage on AWS

The instance store offers higher raw performance because the disks sit inside the host, but its data is lost when the instance stops or the hardware fails. EBS trades a little latency for persistence and mobility, which is why most stateful workloads use it.

Snapshots, backup and data protection

EBS snapshots protect volume data by copying it to regionally redundant storage managed by AWS, outside the single Availability Zone where the volume lives. The first snapshot copies all written blocks, and each subsequent snapshot stores only the blocks changed since the previous one, which keeps storage costs proportional to the rate of change.

Snapshots are crash-consistent by default, meaning they capture the disk as if power had been cut. For databases, administrators should flush or freeze writes or use application-aware tooling to obtain an application-consistent copy. Snapshots can be copied across Regions and accounts, archived to a cheaper tier, and automated with Amazon Data Lifecycle Manager or AWS Backup.

  • Encryption by default can be enabled per Region so every new volume and snapshot is encrypted.
  • Elastic Volumes allow increasing size, changing type or adjusting IOPS without detaching the volume.
  • Recycle Bin rules retain deleted snapshots for a defined period to guard against accidental removal.

Limitations and common mistakes with EBS

The central limitation of Amazon EBS is its Availability Zone scope: a volume cannot be attached to an instance in another zone, so surviving a zone outage requires snapshots, replication at the application layer or a multi-zone database design. Volume size can only grow, never shrink, through Elastic Volumes.

Volumes restored from snapshots load their blocks lazily from S3, so the first read of each block is slow until the volume is initialized. The table below summarizes frequent operational problems and their remedies.

SymptomLikely causeFix
Sudden drop in IOPS on gp2Burst credits exhaustedMigrate to gp3 with provisioned IOPS
Slow database after restoreLazy loading from snapshotEnable fast snapshot restore or pre-read blocks
Throughput capped below volume limitInstance EBS bandwidth reachedChoose a larger or EBS-optimized instance
Unexpected monthly chargesUnattached volumes and old snapshotsAudit with tags and lifecycle policies
Typical EBS problems and fixes

Cost surprises often come from orphaned volumes that remain after instances are terminated, and from overprovisioned io2 IOPS that are billed whether or not they are used. Regular tagging and rightsizing reviews prevent paying for idle capacity.

In simple terms

Amazon EBS is like a hard drive you rent in the cloud and plug into a virtual computer. The computer can be switched off, and the drive keeps everything stored on it. You can even unplug the drive and connect it to a different virtual computer in the same data center area.

You pick the kind of drive you need: a fast one for busy databases or a cheaper, slower one for large files that are read in long runs. To stay safe, you take regular snapshots, which are like photographs of the drive that you can use to rebuild it if something goes wrong.

A practical example

An online retailer runs its PostgreSQL order database on an EC2 instance. The team originally used a 500 GiB gp2 volume, which delivered 1,500 baseline IOPS and burst higher during quiet periods. During a seasonal sale, the burst credits ran out after about forty minutes, and checkout latency rose sharply.

The engineers used Elastic Volumes to convert the disk to gp3 without downtime, provisioning 6,000 IOPS and 250 MiB/s while keeping the same capacity. They also confirmed that the instance type supported enough EBS bandwidth and configured Data Lifecycle Manager to take hourly incremental snapshots copied to a second Region.

During the next sale, latency stayed flat throughout peak traffic, and the monthly storage bill was lower than with the larger gp2 volume they had considered buying for extra baseline performance.