AWSCloud Visual Academy

Comparison lab

Amazon S3 vs Amazon EBS vs Amazon EFS vs Amazon FSx

S3 objects, EBS blocks, EFS shared NFS, FSx specialized file systems.

All comparisons

Picture the difference

Store by key → S3 | Attach a disk → EBS | Mount shared NFS → EFS | Pick a managed file system → FSx

OptionWhat it doesExam clueWhen not to use it
Amazon S3Managed object storage that stores objects by key in buckets and exposes them through APIs.object storage, buckets, keys, versioning, lifecycleDo not use the object API as a drop-in replacement for a VM boot disk or a shared POSIX filesystem.
Amazon Elastic Block Store (Amazon EBS)Persistent block storage volumes for Amazon EC2.block storage, volume, boot disk, Availability Zone, snapshotsUse shared file storage for many clients that need a common filesystem; object storage is not a replacement for a boot disk.
Amazon Elastic File System (Amazon EFS)Elastic shared NFS file storage for Linux workloads and supported AWS compute services.NFS, Linux, POSIX, mount targets, shared file systemChoose an SMB or specialized high-performance filesystem when those features are mandatory, or a block volume for an instance boot device.
Amazon FSxManaged file system family for specific file system technologies such as Windows File Server, Lustre, NetApp ONTAP, and OpenZFS.SMB, Windows File Server, Lustre, ONTAP, OpenZFSDo not pick a variant blindly; a straightforward elastic shared NFS requirement may fit EFS, and an object API is a different interface.

Decision tree

  1. Address objects by bucket and key through an API Amazon S3
  2. Attach a persistent block volume to an EC2 instance in the same AZ Amazon Elastic Block Store (Amazon EBS)
  3. Share an elastic NFS file system across Linux clients Amazon Elastic File System (Amazon EFS)
  4. Need a specific managed file system such as Windows File Server or Lustre Amazon FSx

If none of these clues fit, check the exact requirement before choosing.