EFS, FSx and choosing storage
Block, file and object storage on AWS: what EFS and the FSx family are for, how mounting works, S3 file access, and how to choose.
Security groups and network ACLsEBS volumes and snapshotsS3 buckets, objects and consistency
EFS, FSx and choosing storage
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- EBS is a block device in one Availability Zone, EFS and FSx are shared file systems reached over the network, and S3 is objects reached over HTTP.
- Choose by the interface the software needs first, then by sharing, latency, availability and price.
- EFS is elastic NFS for Linux: no capacity to provision, a mount target per Availability Zone, and security groups that must allow port 2049.
- FSx runs specific file systems: Windows File Server for SMB, Lustre for high performance computing, NetApp ONTAP and OpenZFS for their features.
- Prefer S3 when the application can use an API. It is usually the cheapest per byte and scales without mounts or capacity planning.
- Shared storage is not a database. Concurrent writers still need locking or a design that avoids them.
Three interfaces, not three prices
Software expects storage to behave in a particular way. A database wants a disk it can format and write blocks to. A content system wants a directory that several servers share. A web service is happy to say “store this under this name”. Those are block, file and object storage, and AWS has a service for each. Pick the wrong interface and no amount of tuning fixes it.
The operator’s view of building blocks introduces the trio. Here is how to choose on AWS.
EBS, briefly
An EBS volume is a network-attached disk in one Availability Zone, normally attached to one instance. You choose its size and performance, format it and mount it. It’s the private hard drive: low latency, not shared. (io1 and io2 volumes can attach to several instances in the same zone, but only cluster-aware software can use that safely.)
EFS: a shared Linux file system
Amazon EFS is a managed NFS file system. You don’t set a size. It grows and shrinks with your files and bills for what’s there.
To use it you create the file system, then a mount target, a network interface with an IP address, in each Availability Zone where clients run. Clients mount it over TCP port 2049, so the mount target’s security group must allow that from them. EC2, ECS, EKS, Fargate and Lambda can all mount it. Windows instances aren’t supported.
Think of it as the office file server: everyone sees the same folders, and every access crosses the network. Defaults are the right starting point: General Purpose performance mode and Elastic throughput, which scales with load and bills for data transferred. A Regional file system stores data across several zones. One Zone is cheaper and can be lost with its zone.
EFS also tiers. Lifecycle management moves files you haven’t touched to Infrequent Access or Archive, which cost less to keep, more to read and have tens-of-milliseconds latency instead of sub-millisecond for Standard.
It gives NFS close-to-open consistency and advisory locks. Applications that ignore locks will still trample each other.
FSx: a particular file system, managed
Amazon FSx is for when you need a specific file system’s protocol or features:
| Service | Protocol | Reach for it when |
|---|---|---|
| FSx for Windows File Server | SMB | Windows apps, Active Directory, Windows permissions |
| FSx for Lustre | Lustre | HPC and machine learning that needs very high throughput |
| FSx for NetApp ONTAP | NFS, SMB, iSCSI, NVMe | you already run NetApp, or need multiple protocols and its data features |
| FSx for OpenZFS | NFS | moving ZFS or Linux file servers, wanting snapshots and clones |
Unlike EFS, with most of these you think about deployment type (one zone or several), capacity and throughput when you create the file system.
S3, and file access to S3
S3 isn’t a file system: no appends in a general purpose bucket, no in-place edits, no directories. Software that can call an API should use it anyway, because there’s nothing to mount, size or patch.
For software that insists on file paths over S3 data there are two options. Mountpoint for Amazon S3 is a client that mounts a bucket with a limited set of file operations, aimed at large sequential reads and new-file writes. S3 Files is a newer service that puts a real shared file system, built on EFS, in front of a bucket and synchronizes the two. It caches active data on fast storage while the bucket stays authoritative. Synchronization is asynchronous, so read its consistency rules before treating the two views as one.
Deciding
Work down these questions:
- Can the code use an object API? Use S3.
- Does it need a disk for one machine? Use EBS. For a database, consider a managed one instead of running your own.
- Do several machines need the same files over NFS? Use EFS.
- Do you need SMB, Lustre or vendor features? Use FSx.
Then compare total cost: capacity, throughput, requests, backups and cross-zone traffic, not only the price per gigabyte. And plan backups for all of them. Durable storage still faithfully stores your mistakes.
About the video
The embed is the first 17 minutes 37 seconds of KodeKloud’s “AWS Storage Explained: EBS vs EFS vs S3” from June 2025, cut before a course advert. Its chapters cover EBS, EFS, S3 and the Glacier classes. It doesn’t cover FSx at all; the short CloudWolf video in the links does, and this lesson’s table fills the gap. I judged it from chapters and description only.
Nothing was run for this lesson, since mounting needs real network file systems. EFS, FSx, S3 Files and Mountpoint facts come from their AWS user guides, checked in November 2026.
Check yourself
Twenty containers in three Availability Zones need to read and write the same uploaded files through ordinary file paths. What fits?
Amazon EFS. It is a shared NFS file system with mount targets in each zone. An EBS volume lives in one zone and isn't a shared file system, and S3 isn't a POSIX file system.
A Windows application expects an SMB share joined to Active Directory. Which service?
Amazon FSx for Windows File Server. EFS speaks NFS and AWS doesn't support it on Windows instances.
An EC2 mount of a new EFS file system hangs until it times out. What do you check first?
That a mount target exists in the instance's zone and its security group allows inbound TCP 2049 from the instance.
Why might moving a database's data files onto EFS be a poor idea?
Each operation crosses the network to a shared file service, so latency per write is higher than a local block volume, and databases are built around fast fsync on block storage.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.