EBS, EFS, FSx and Instance Store Compared: Block, File and Object Storage on AWS

AWS Technical Essentials 45 min min read Updated: Nov 17, 2026 Beginner
EBS, EFS, FSx and Instance Store Compared: Block, File and Object Storage on AWS
Beginner Topic 2 of 3

Three Kinds of Storage

KindLike...AccessAWS services
BlockA hard disk inside a computerMounted by one server, formatted with a file systemEBS, instance store
FileA shared network folderMany servers mount the same folder (NFS or SMB)EFS, FSx
ObjectA giant online drive with web linksVia API/HTTP, each file is an objectS3, Glacier

Amazon EBS (Elastic Block Store)

  • Network-attached disks for EC2, in one AZ, replicated inside that AZ
  • Persist after the instance stops. Detach and attach to another instance in the same AZ
  • Types: gp3 (default), io2 (high IOPS), st1/sc1 (HDD)
  • Snapshots back up volumes to S3 and can be copied across Regions
  • You can resize online and encrypt volumes
  • Normally attached to one instance (Multi-Attach for special io1/io2 cases)

Instance Store

  • Disk physically inside the host server. Very fast, but data is lost when the instance stops or fails
  • Use for temporary data: caches, buffers, scratch space

Amazon EFS (Elastic File System)

  • A shared file system for Linux using NFS. Many EC2 instances, containers and Lambda functions can mount the same files at once, across AZs
  • Elastic: grows and shrinks automatically, pay for what you use
  • Storage classes with lifecycle management (Standard, Infrequent Access, Archive)
  • Encrypted at rest and in transit. Needs port 2049 open in the security group of the mount target
  • Typical uses: web content shared by servers, home directories, content management systems, machine learning data
bash # On an EC2 Linux server sudo dnf install -y amazon-efs-utils sudo mkdir /mnt/efs sudo mount -t efs -o tls fs-0123456789abcdef0:/ /mnt/efs echo "shared file" | sudo tee /mnt/efs/note.txt df -h /mnt/efs # Persist across reboots: add to /etc/fstab # fs-0123456789abcdef0:/ /mnt/efs efs _netdev,tls 0 0

Amazon FSx: Managed File Systems for Special Needs

FSx typeUse
FSx for Windows File ServerWindows shared folders (SMB) with Active Directory
FSx for LustreHigh-speed file system for HPC and machine learning, linked to S3
FSx for NetApp ONTAPMulti-protocol file storage (NFS, SMB, iSCSI) with NetApp features
FSx for OpenZFSFast Linux file storage with snapshots and cloning

Comparison Table

EBSInstance storeEFSS3
TypeBlockBlockFile (NFS)Object
Shared by many serversNo (one instance)NoYesYes (over API)
ScopeOne AZOne hostMulti-AZ RegionRegional, multi-AZ
Survives stopYesNoYesYes
CapacityUp to 64 TiB per volumeFixed by instanceElastic (petabytes)Virtually unlimited
Best forBoot disks, databasesTemporary cacheShared files for LinuxBackups, media, data lakes, websites

Decision Guide

NeedPick
Disk for an EC2 server or databaseEBS
Scratch space, fastest local I/OInstance store
Shared folder for many Linux serversEFS
Shared Windows folderFSx for Windows
Store images, videos, backups, static websitesS3
Very cheap long-term archiveS3 Glacier

Practice

  1. Create an EFS file system and mount it on two instances. Write a file on one and read on the other
  2. Create an EBS volume, attach it, write data, stop the instance and confirm the data stays
  3. Explain why a database on instance store is risky
  4. Fill in the comparison table without looking

Conclusion

Use EBS for server disks, instance store for temporary data, EFS or FSx for shared files, and S3 for objects, backups and websites. Know scope (AZ vs Region), sharing and persistence differences.

Quick Summary: three kinds; EBS; instance store; EFS; FSx; comparison; decision guide.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators