- AWS
- Cloud Storage
- Beginner
- 7 min read
S3 vs EBS vs EFS is one of the first choices you make on AWS, and the names do not help. All three store data, but they work in very different ways. EBS is a disk for one server, EFS is a folder many servers share, and S3 is storage your apps reach over the internet. This guide shows each one with a real example and its price.
Last updated: December 2026
In short
- EBS: one server needs a fast disk, such as a database on EC2.
- EFS: several servers need the same files at the same time.
- S3: you want to store almost anything cheaply and read it from anywhere.

Block, File and Object Storage in Plain Words
Block storage (EBS)
A raw disk. The server’s operating system puts its own file system on it, exactly like the SSD in your laptop.
File storage (EFS)
A ready-made folder tree on the network. Many machines open the same files by path, like a shared drive at the office.
Object storage (S3)
Each file is an object with a name (a key) inside a bucket. You upload and download whole objects through an API.
01 Amazon EBS: A Disk for One Server
How it works: you create a volume and attach it to an EC2 instance in the same Availability Zone (AZ). The server sees it as a normal drive, formats it and uses it. Your boot disk is an EBS volume too.
Size and speed: a gp3 volume can be up to 64 TiB and always gets 3,000 IOPS and 125 MB/s at no extra charge. You can pay for more speed if you need it.
Price: about $0.08 per GB-month for gp3. You pay for the size you create, not what you use, so a 500 GB volume holding 20 GB still costs the full 500 GB.
Example: a PostgreSQL database running on one EC2 instance. Databases read and write small blocks all the time, and a local block disk handles that best.
Watch out: io1 and io2 volumes support Multi-Attach (up to 16 instances in one AZ), but the servers then need a cluster-aware file system. It is not a shared folder. If you need shared files, use EFS.
02 Amazon EFS: A Shared Folder for Many Servers
How it works: EFS is a managed NFS file system. EC2 instances, containers on EKS or ECS, and Lambda functions mount it and read and write the same files at once, even from different AZs.
Size: you never pick a size. The file system grows as you add files and shrinks when you delete them.
Price: about $0.30 per GB-month for Standard storage, for what you actually store. A One Zone file system costs about $0.16 but keeps data in a single AZ. Lifecycle rules can move files nobody opens to cheaper Infrequent Access and Archive classes.
Example: three web servers behind a load balancer. A user uploads a photo through server 1, and servers 2 and 3 must show it too. With EFS, all three see the same uploads folder.
Watch out: EFS does not support Windows instances. For a Windows file share, AWS offers Amazon FSx for Windows File Server.
03 Amazon S3: Storage Your Apps Reach Over HTTPS
How it works: you do not attach or mount S3. Apps, scripts and browsers send requests over HTTPS (through the AWS SDK, the AWS CLI or a signed URL) to put and get objects in a bucket.
Size: a bucket has no size limit. One object can be up to 50 TB with multipart upload; a single upload request can send up to 5 GB.
Price: about $0.023 per GB-month for S3 Standard (first 50 TB), and the data is kept in at least three AZs. You also pay a small amount per request and for data sent out to the internet.
Example: nightly database backups, application logs, or a static website served through CloudFront. It is also where Terraform teams often keep their state file.
Watch out: tools like Mountpoint for Amazon S3 can show a bucket as a folder on Linux, but you still cannot edit an existing file in place. Treat S3 as object storage, not as a disk.
S3 vs EBS vs EFS Compared
| Feature | EBS | EFS | S3 |
|---|---|---|---|
| Type | Block | File (NFS) | Object |
| How you use it | Attached disk | Mounted folder | HTTPS API |
| Who can use it at once | One instance (normally) | Thousands of clients | Any app with permission |
| Where the data lives | One AZ | Many AZs (or One Zone) | At least 3 AZs |
| Size | Up to 64 TiB per volume | Grows by itself | No bucket limit |
| You pay for | The size you set | What you store | What you store, plus requests |
| Standard price per GB-month | $0.08 (gp3) | $0.30 | $0.023 |
Prices are AWS list prices for US East (N. Virginia) in December 2026. Prices differ a little by region. Check the official S3, EBS and EFS pricing pages before you plan a budget.
What 100 GB costs for a month
EBS gp3: about $8. EFS Standard: about $30. S3 Standard: about $2.30 plus requests. EFS costs the most because you are paying for a managed file system that many servers can use at once. Pay that only when you really need sharing.
Which One Should You Use?
Is the data used by a single server that needs speed? Choose EBS. Boot disks, databases you run yourself and busy apps go here.
Must several servers open the same files at once? Choose EFS. Shared uploads, content folders and files used by many containers go here.
Is it data you keep and fetch from code, a script or a browser? Choose S3. Backups, logs, media, static sites and data lakes go here.
Most real systems use all three. A typical web app runs on EC2 with EBS boot disks, shares uploads on EFS, and sends backups and logs to S3.
A common mistake: a database on EFS
EFS grows by itself, so it can look like a good home for a database. It is not. A database writes many small blocks and needs very low latency, and a network file system adds delay to every write. Put the database on EBS, or better, use a managed service like Amazon RDS, which runs on EBS for you and handles backups and patching.
Key takeaways
- EBS is a disk for one server in one AZ. You pay for the size you create.
- EFS is a shared Linux folder across AZs. It costs the most per GB, so use it only for sharing.
- S3 is object storage over HTTPS. It is the cheapest and the right place for backups and logs.
- Keep databases on EBS or Amazon RDS, never on EFS.
AWS Storage FAQ: S3, EBS and EFS Questions
Can two EC2 instances share one EBS volume?
Only io1 and io2 volumes with Multi-Attach, only in one AZ, and only with software built for shared disks. For normal file sharing, use EFS.
Can I mount S3 like a drive?
Tools such as Mountpoint for Amazon S3 can, but they do not behave like a real disk. For example, you cannot change part of an existing file. Use EBS or EFS when software expects a normal file system.
Does EFS work with Windows?
No. EFS uses NFS and supports Linux only. For Windows servers, use Amazon FSx for Windows File Server.
Which is the cheapest: S3, EBS or EFS?
S3 Standard is the cheapest per GB, then EBS gp3, then EFS Standard. But compare what you pay for: EBS charges for the whole volume even when it is mostly empty.
What happens to my EBS volume if the Availability Zone fails?
A normal EBS volume lives in one AZ, so take regular snapshots. Snapshots are stored by AWS in S3 and can be restored to a new volume in another AZ. See our guide to disaster recovery strategies for the bigger picture.
Want the details from AWS itself? Read the EBS volume types, what is Amazon EFS and S3 storage classes pages.
Diagram redrawn by infotechtu.com, based on an idea shared by Saiful Khan.
Related guides on infotechtu.com
Share this guide
Get new guides by email
One short email when a new guide is out. Unsubscribe at any time.
