AWS Storage S3, EBS, EFS, and FSx
Learn how to choose the right AWS storage service for databases, applications, backups, and shared files. Explore real-world use cases, performance, security, costs, and Amazon S3 tutorial.
Series: Skill Builder Digital Classroom - AWS Cloud Technical Essentials (11 articles)
- …
- 6AWS Storage S3, EBS, EFS, and FSx This article
AWS Storage Explained: S3 vs EBS vs EFS vs FSx How to Choose the Right Service
Your cloud architecture can have powerful compute, clean code, and excellent networking. But choose the wrong storage, and everything becomes harder.
Your database slows down. Your application loses files. Your infrastructure costs increase. Or worse, your critical data disappears when an instance is terminated.
The problem isn't that AWS lacks storage options.
The problem is knowing which one to use.
AWS offers several storage services because different workloads have different requirements. A database doesn't store and access data the same way as a photo gallery. A shared application directory doesn't behave like a temporary cache.
Understanding those differences is one of the foundations of good cloud architecture.
In this guide, we'll move from storage fundamentals to AWS services, then build a practical Amazon S3 example.
By the end, you'll understand not only what each service does, but why you would choose it.
1. The Three Types of Cloud Storage
Imagine you're building an employee directory application.
Your application needs to store three things:
- Operating system files and application software.
- Employee profile photos.
- Employee names, job titles, and department information.
These may look like ordinary files and data, but their storage requirements are different.
The operating system needs fast, frequent read-and-write access. Employee photos may be viewed thousands of times without changing. Structured employee records belong in a database, which needs an appropriate storage layer.
AWS organizes its core storage offerings around three models.
File storage: Organize and share
File storage organizes data into folders and subfolders, just like Windows File Explorer or macOS Finder.
For example:
/company/employees/photos/employee01.jpg Applications can locate files using their paths.
File storage is especially useful when multiple servers need access to the same files, with familiar file-system permissions and protocols.
Typical workloads include shared application directories, enterprise file shares, content management systems, and home directories.
Block storage: Fast, granular access
Block storage divides data into addressable blocks.
Imagine a 1 GB file containing thousands of records.
If you need to change a small portion of that file, block storage allows the operating system or application to update the relevant blocks rather than replacing the entire object.
This makes block storage a natural choice for operating systems, databases, and applications that frequently modify data.
Object storage: Store and retrieve complete objects
Object storage stores data as objects containing content and metadata, identified by unique keys.
Instead of navigating a traditional file-system hierarchy, applications typically access objects through APIs.
A photo, video, backup archive, or log file can be stored as an object.
Object storage is especially effective when data needs to scale massively and is usually retrieved or replaced as a complete object.
The principle is simple:
File storage organizes and shares.
Block storage supports granular updates.
Object storage scales the storage and retrieval of objects.

2. Amazon EFS: Shared File Storage That Grows With Your Application
Now imagine your employee directory runs on three EC2 instances.
An employee uploads a new profile photo.
If that photo is saved only to the local disk of one instance, another instance may not have access to it.
You need a shared storage system.
That's where Amazon Elastic File System (Amazon EFS) becomes useful.
Amazon EFS is a managed, elastic file storage service that supports the Network File System (NFS) protocol.
Multiple compatible compute resources can mount the same file system and access shared files.
Why EFS matters
Suppose your application grows from three servers to thirty.
You don't want to manually copy uploaded files between instances.
With EFS, the servers can access a common file system.
EFS also automatically adjusts storage capacity as files are added or removed, reducing the need to provision storage capacity in advance.
EFS storage choices
EFS offers Regional and One Zone deployment options.
Regional configurations provide resilience across multiple Availability Zones. One Zone configurations store data within one Availability Zone and can offer cost advantages when that level of resilience is acceptable.
EFS also supports storage options designed for different access patterns.
When should you use EFS?
Consider EFS when your workload needs a shared Linux-compatible file system, NFS access, elastic capacity, or multiple compute instances accessing common directories.
A typical example is a multi-instance web application that needs shared uploads or application files.

3. Amazon FSx: Managed Storage for Specialized File Systems
Not every application uses the same file system.
A Windows application may require SMB shares. A high-performance computing workload may need extremely fast parallel file access. An enterprise may already depend on NetApp ONTAP.
Rebuilding those applications around a different storage interface can be expensive.
Amazon FSx addresses this challenge by offering managed file systems with specific compatibility and performance characteristics.
The major options covered in this module are:
Amazon FSx for Windows File Server
Designed for Windows-compatible file storage, including SMB access and Windows-oriented integration.
Useful for enterprise applications, Windows file shares, and workloads that depend on familiar Windows file-server functionality.
Amazon FSx for NetApp ONTAP
Provides managed NetApp ONTAP capabilities.
Useful for organizations migrating existing ONTAP workloads or needing advanced enterprise data-management features.
Amazon FSx for OpenZFS
Provides managed OpenZFS file storage, including capabilities such as snapshots and cloning.
Useful for applications that benefit from ZFS features and low-latency file access.
Amazon FSx for Lustre
Designed for high-performance workloads requiring parallel access to large amounts of data.
Common use cases include scientific computing, machine learning, analytics, and media processing.
EFS vs FSx: What's the difference?
EFS is a strong default candidate when you need elastic, shared NFS file storage.
FSx is worth evaluating when you need a specific file-system technology, protocol, feature set, or performance profile.

4. Amazon EC2 Instance Store: Speed Without Long-Term Persistence
Let's move from file storage to block storage.
Imagine an application that performs temporary calculations.
It downloads data, processes the data, produces a result, and then discards the temporary files.
Does that temporary data need to survive if the server disappears?
Not necessarily.
This is where Amazon EC2 instance store can make sense.
Instance store provides temporary block-level storage using disks physically attached to the host running an EC2 instance.
Because the storage is local to the host, it can offer very low latency and high performance.
But there is an important trade-off.
Instance store is ephemeral.
Its data does not survive events such as instance termination, and stopping an instance with instance-store volumes results in the loss of the data on those volumes.
An operating-system reboot is different: instance-store data can survive a reboot.
When is instance store useful?
Good candidates include temporary caches, scratch files, intermediate processing data, and workloads that replicate important data elsewhere.
For example, a data-processing worker can use instance store to hold intermediate files that can be regenerated.
But a production database containing customer orders should not depend on instance store as its only durable storage layer.

5. Amazon EBS: Persistent Block Storage for EC2
Now consider a different situation.
Your application runs a MySQL database on Amazon EC2.
That database contains customer accounts, orders, and transactions.
The data changes frequently.
It must remain available even when the application server is stopped or replaced.
This is a natural use case for Amazon Elastic Block Store (Amazon EBS).
EBS provides persistent block storage volumes that can be attached to compatible EC2 instances.
Think of an EBS volume as a managed storage drive connected to your virtual server.
Unlike instance store, EBS storage exists independently of the instance's underlying host.
Why EBS is important
EBS volumes can support operating-system boot disks, databases, enterprise applications, and other workloads that require block-level access.
You can modify supported volume capacity and performance settings as requirements change.
EBS volumes are also replicated within their Availability Zone to protect against individual storage-component failures.
However, that replication is not a substitute for backups.
SSD vs HDD EBS volumes
EBS offers two broad performance categories.
SSD-backed volumes are designed for workloads where latency and IOPS matter, such as transactional databases and boot volumes.
Common options include gp3 general-purpose SSD volumes and io2 provisioned-performance SSD volumes.
HDD-backed volumes are designed for throughput-oriented workloads involving large sequential reads and writes.
Examples include st1 Throughput Optimized HDD and sc1 Cold HDD.
The distinction matters because IOPS and throughput measure different things.
IOPS measures how many input/output operations a storage system can handle per second.
Throughput measures how much data can move per second.
A database processing thousands of small transactions and an analytics system reading large sequential files may need very different storage configurations.
EBS snapshots: Your recovery mechanism
EBS snapshots create point-in-time backups of volumes.
After the initial snapshot, subsequent snapshots are incremental, storing changed blocks as needed.
Snapshots are managed through AWS and can be used to create replacement volumes.
For production workloads, combine snapshots with a tested backup and recovery strategy.

6. Amazon S3: Object Storage Built for Massive Scale
Now return to the employee directory application.
Your EC2 instances need to display employee photos.
Would you store every image inside the database volume?
You could build a system that way, but it would complicate storage management and scaling.
A better architecture for many applications is to store the images in Amazon Simple Storage Service (Amazon S3) and keep their references in the application database.
S3 is an object storage service.
It is not a conventional block device or shared POSIX file system.
Applications access S3 objects through supported APIs and interfaces.
Buckets and objects
S3 stores objects inside buckets.
Every object has a key that identifies it within its bucket.
For example:
Bucket:
employee-images-example Object key:
profiles/employee01.jpg Although the key looks like a folder path, general-purpose S3 buckets use a flat object namespace. The folder appearance is created using prefixes and delimiters.
Durability and availability
S3 Standard is designed for 99.999999999% durability and 99.99% availability.
Those figures describe different properties.
Durability concerns the probability of retaining objects over time.
Availability concerns whether the service can respond successfully to requests.
Neither metric eliminates the need for appropriate security, recovery, and data-protection controls.
Common S3 use cases
S3 is widely used for application images and videos, backup storage, static assets, software distribution, data lakes, log archives, and static website content.
Its strength is not simply storage capacity.
It's the ability to separate object storage from the lifecycle of an individual application server.

7. S3 Security: Accessible From Anywhere Doesn't Mean Accessible to Everyone
Here's a common beginner mistake.
You upload a file to S3, copy its object URL, paste it into your browser, and expect to see the image.
Instead, you get:
Access Denied.
Why?
Because S3 buckets and objects are private by default.
Having an object URL does not automatically give someone permission to retrieve the object.
That's a security feature, not a problem.
IAM policies
AWS Identity and Access Management (IAM) lets you define permissions for users and roles.
For example, an EC2 application role may be allowed to read objects from a specific S3 bucket without being allowed to delete them.
Bucket policies
Bucket policies are resource-based JSON policies attached to S3 buckets.
They can define access permissions for the bucket and its objects, including cross-account access.
Block Public Access
S3 Block Public Access helps prevent accidental exposure of data.
For new general-purpose buckets, public access is blocked by default.
What about ACLs?
Older S3 tutorials often demonstrate making objects public using access control lists.
Modern S3 configurations disable ACLs by default through the Bucket owner enforced setting.
For most new applications, AWS recommends using IAM and resource-based policies instead.
If users need temporary access to a private object, presigned URLs are another option.
Encryption
S3 automatically applies server-side encryption with S3-managed keys as the baseline for newly uploaded objects.
Additional encryption options are available when organizations require more control over encryption keys.
The security principle:
Give applications the permissions they need, not every permission they might someday use.

PRIVATE BY DEFAULT. ACCESS BY DESIGN.
8. S3 Storage Classes: Stop Paying the Same Price for Every File
Not all data deserves the same storage treatment.
Imagine your company stores daily application logs.
Today's logs might be accessed repeatedly.
Logs from six months ago might be accessed only during an audit.
Logs from five years ago may need to exist solely for compliance.
Storing all three in the same frequently accessed storage class may be unnecessarily expensive.
S3 provides different storage classes to match access patterns and retrieval requirements.
S3 Standard
Designed for frequently accessed data requiring low-latency access and high availability.
S3 Intelligent-Tiering
Useful when access patterns are unknown or change over time.
It can automatically move eligible objects between access tiers to optimize storage costs.
S3 Standard-Infrequent Access
Suitable for less frequently accessed data that still needs rapid retrieval.
S3 One Zone-Infrequent Access
Stores data in one Availability Zone, making it suitable for certain secondary copies or recreatable data where multi-AZ resilience is not required.
S3 Glacier Instant Retrieval
Designed for rarely accessed archive data that still requires millisecond retrieval.
S3 Glacier Flexible Retrieval
Designed for archival workloads where retrieval can take minutes or hours, depending on the retrieval option.
S3 Glacier Deep Archive
Designed for long-term archival data that is rarely accessed and can tolerate longer retrieval times.
S3 Lifecycle rules
S3 Lifecycle configurations automate object transitions and expiration.
For example, a company might define a policy that moves older logs into an archival storage class and deletes them when their retention period ends.
The right policy depends on minimum storage durations, transition restrictions, retrieval charges, compliance requirements, and actual access patterns.

9. S3 Versioning: Recover From Accidental Changes
Imagine an employee uploads a new image named
profile.jpg .Unfortunately, that filename already exists.
Without versioning, replacing the object may destroy the previous content.
Now imagine the previous image was the correct one.
How do you recover it?
S3 Versioning helps solve this problem.
When versioning is enabled, S3 can retain multiple versions of objects with the same key.
Each version receives a version identifier.
If someone overwrites an object, previous versions can remain available.
If someone deletes an object without specifying a version, S3 normally adds a delete marker rather than immediately removing all existing versions.
Why versioning matters
Versioning can help protect against accidental overwrites, unintended deletions, and certain application mistakes.
However, it is not a complete backup strategy on its own.
Someone with sufficient permissions may still permanently delete object versions.
Versioning also increases storage consumption because older versions remain stored.
Lifecycle rules can help manage previous versions and their associated costs.

10. Choosing the Right AWS Storage Service
Now that we've covered the storage models and major AWS services, let's make the decision practical.
Imagine four workloads.
Scenario 1: A video-processing application
Your application receives large video uploads, processes them, and stores the completed videos for future retrieval.
Recommended: Amazon S3
Why? The workload needs scalable object storage for large media files and long-term retention.
Scenario 2: A MySQL database on EC2
Your application processes customer orders and frequently updates database records.
Recommended: Amazon EBS
Why? The database needs persistent block storage with suitable latency and I/O performance.
Scenario 3: Temporary calculation files
Your EC2-based processing worker generates temporary files that can be recreated if the instance fails.
Recommended: EC2 Instance Store, when supported by the chosen instance type.
Why? The workload can benefit from local temporary storage without requiring the data to survive instance replacement.
Scenario 4: Shared WordPress files across EC2 instances
Your application runs on multiple Linux EC2 instances that need access to a common directory of files.
Recommended: Amazon EFS
Why? The workload needs a shared file system accessible by multiple instances.
Object storage may also be suitable for WordPress media when the application is designed or configured to use it, but S3 is not a direct drop-in replacement for a conventional POSIX file system.
AWS Storage Comparison
Service | Storage model | Best suited for |
|---|---|---|
Amazon S3 | Object | Media, backups, data lakes, archives |
Amazon EBS | Block | EC2 boot volumes, databases |
EC2 Instance Store | Block | Temporary data, caches, scratch space |
Amazon EFS | File | Shared NFS storage |
Amazon FSx | File | Specialized file-system workloads |

THE BEST STORAGE SERVICE IS THE ONE THAT FITS THE WORKLOAD.
11. Hands-On: Create an Amazon S3 Bucket and Connect It to an EC2 Application
Theory becomes useful when you can apply it.
Let's build a simplified version of the employee directory storage architecture.
The objective is to create a private S3 bucket, upload an employee photo, and prepare an EC2-hosted application to access the bucket using an IAM role.
Step 1: Open the S3 console
Sign in to the AWS Management Console.
Search for S3 and open the service.
Choose Create bucket.
Step 2: Configure the bucket
Choose a general-purpose bucket and select the AWS Region appropriate for your application.
For this example, use US West (Oregon),
us-west-2 , to match the original exercise.Choose a unique bucket name, such as:
employee-directory-images-example-48271 The name is illustrative. It must be available in your AWS partition.
Keep Block Public Access enabled and ACLs disabled.
Review the remaining defaults and create the bucket.
Step 3: Upload an employee photo
Open the bucket.
Select Upload, then Add files.
Choose a sample image and upload it.
You should now see the object in your bucket.
Step 4: Test the object URL
Open the uploaded object's details and copy its URL.
Try opening that URL in a browser without authenticated access.
For a private object, you should normally receive an access-denied response.
This demonstrates that knowing an object's URL is not the same as having permission to retrieve it.
Step 5: Configure application access
Create or update an IAM policy that grants the application's EC2 role only the S3 actions it needs.
For an application that reads employee photos, this may include
s3:GetObject for the intended object prefix.If the application also uploads photos, additional permissions such as
s3:PutObject may be required.Attach the policy to the appropriate IAM role, and ensure that role is associated with the EC2 instance through an instance profile.
Depending on your cross-account design, a bucket policy may also be required.
Do not enable public access simply to make the application work.
Step 6: Configure the application
Update the application's configuration with the bucket name and AWS Region.
The exact method depends on how the application was written.
For example, an application might read a bucket name from an environment variable or EC2 user data configuration.
The application should use an AWS SDK and its EC2 IAM role credentials to access S3.
Avoid embedding long-term AWS access keys in application code.
Step 7: Launch or update the EC2 application
Use the appropriate EC2 launch configuration or update process.
The original training exercise demonstrates launching a similar instance from an existing configuration and updating its user data.
If following that approach, review the AMI, instance type, security group, IAM role, network configuration, and user data before launching.
Wait for the instance status checks to pass.
Step 8: Verify the integration
Test that the application starts successfully.
Then verify that it can read or upload objects using the intended IAM permissions.
An EC2 status check passing does not, by itself, prove that S3 integration works.
Step 9: Clean up
After testing, stop or terminate resources as appropriate.
Remove unused test objects, volumes, instances, and other resources after checking whether they are needed.
Remember that stopped EC2 instances can still incur charges for attached EBS volumes and other resources.

12. Test Your Understanding
Before choosing storage for your next application, try these questions.
Question 1: Your application needs to store millions of user-uploaded photos. Which AWS service is a strong candidate?
Answer: Amazon S3.
Question 2: Your EC2-hosted relational database needs persistent, low-latency block storage. Which service should you evaluate?
Answer: Amazon EBS.
Question 3: Your application needs a shared NFS file system mounted by multiple Linux instances. Which service fits?
Answer: Amazon EFS.
Question 4: Your workload generates disposable temporary files on an EC2 instance. Which storage option may fit?
Answer: EC2 Instance Store.
Question 5: Your application depends on native Windows SMB file shares. Which managed AWS service should you evaluate?
Answer: Amazon FSx for Windows File Server.
If you can explain the reasoning behind each answer, you're already thinking more like a cloud architect.
Final Thoughts: Storage Is an Architecture Decision
A good cloud architecture isn't built by choosing the most powerful service.
It's built by matching each requirement to the right service.
Amazon S3 is excellent for scalable object storage.
Amazon EBS supports persistent block storage for EC2 workloads.
Amazon EFS provides shared, elastic file storage.
Amazon FSx delivers specialized managed file systems.
EC2 Instance Store provides temporary local storage for workloads that can tolerate losing that data.
But the most important lesson is bigger than memorizing AWS product names.
Understand how your application reads, writes, shares, protects, and retains data before selecting storage.
Because the right storage decision can simplify your architecture.
And the wrong one can become a problem that follows your application for years.
What's the most confusing AWS storage decision you've encountered: S3 vs EFS, EBS vs Instance Store, or EFS vs FSx? Share your experience in the comments.
Open to Cloud Ops Remote and technical writing projects.
Series: Skill Builder Digital Classroom - AWS Cloud Technical Essentials (11 articles)
- …
- 6AWS Storage S3, EBS, EFS, and FSx This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article