Cloud Storage

What are different AWS storage services?

AWS storage falls into object, block and file types, plus hybrid, transfer and backup tools. Find which service fits your job, from S3 and EBS to EFS and FSx.

On this page
  1. Object storage: Amazon S3
  2. Block storage: Amazon EBS and instance store
  3. File storage: Amazon EFS and Amazon FSx
  4. Hybrid access: AWS Storage Gateway
  5. Moving data: DataSync, Transfer Family and Snow Family
  6. Backup and disaster recovery
  7. Which service fits which need
  8. How to choose
  9. Databases are not storage services

AWS storage services fall into three main categories. Object storage is Amazon S3. Block storage is Amazon Elastic Block Store (EBS) and EC2 instance store. File storage is Amazon Elastic File System (EFS) and Amazon FSx. AWS also offers hybrid, data transfer, backup and disaster recovery services that work with these. This guide explains each service in turn, then maps common needs to the right one.

Object storage: Amazon S3

Amazon S3 stores data as objects in buckets. It is the usual choice for backups, media files, logs, data lakes and static website assets. Its storage classes range from S3 Standard, for data you read often, to S3 Glacier Deep Archive, for long-term retention that is rarely read.

The S3 Glacier options are now storage classes within S3. The older, separate Glacier vault interface still exists, but most new work uses the S3 classes. For the concept behind object storage, see object storage in cloud computing.

Block storage: Amazon EBS and instance store

Amazon EBS provides block volumes that attach to EC2 instances and work like virtual hard drives. A volume persists independently of the instance, but it stays in the Availability Zone where it was created. EBS is the usual choice for an instance’s operating system and for database files.

EC2 instance store is temporary block storage physically attached to the host. It is fast, but its data is lost when the instance stops or terminates. Use it for scratch space, caches and other data you can rebuild.

File storage: Amazon EFS and Amazon FSx

Amazon EFS is a managed NFS file system for Linux workloads. It scales automatically and can be shared by many instances. It offers Standard, Infrequent Access and Archive storage classes.

Amazon FSx provides managed file systems for specific needs:

  • FSx for Windows File Server: SMB file shares with Active Directory integration.
  • FSx for Lustre: high-performance file systems for compute-heavy workloads.
  • FSx for NetApp ONTAP: NetApp’s file system on AWS.
  • FSx for OpenZFS: the OpenZFS file system on AWS.

EFS is for Linux clients. Windows clients should use FSx for Windows File Server. For more on file storage as a category, see types of cloud storage services.

Hybrid access: AWS Storage Gateway

AWS Storage Gateway connects on-premises applications to AWS storage. It has three gateway types:

  • S3 File Gateway presents S3 buckets to on-premises systems as NFS or SMB file shares.
  • Volume Gateway presents cloud-backed block volumes to local servers.
  • Tape Gateway emulates tape libraries and stores virtual tapes in AWS.

Moving data: DataSync, Transfer Family and Snow Family

  • AWS DataSync moves data online between on-premises storage and AWS storage services.
  • AWS Transfer Family provides managed SFTP, FTPS, FTP and AS2 endpoints that store files in S3 or EFS. It suits partners who already upload files over those protocols.
  • AWS Snow Family uses physical devices, such as Snowball Edge, for very large offline transfers. The range of available devices has changed in recent years, so check the current options before planning a migration.

Backup and disaster recovery

  • AWS Backup applies central backup policies across services, including EBS, EFS, FSx, RDS, DynamoDB and S3.
  • AWS Elastic Disaster Recovery replicates servers at the block level so you can fail over to AWS if your primary site goes down.

For how backups work in general, see what is cloud backup and how does it work?

Which service fits which need

If you need… Use
Objects such as backups, media or data lake files Amazon S3
A disk for one EC2 instance, such as an OS or database Amazon EBS
Temporary, very fast scratch space on an instance EC2 instance store
A shared Linux file system Amazon EFS
Windows file shares with Active Directory Amazon FSx for Windows File Server
A high-performance file system for compute workloads Amazon FSx for Lustre
NetApp ONTAP or OpenZFS file systems Amazon FSx for NetApp ONTAP or OpenZFS
On-premises apps that use cloud storage AWS Storage Gateway
Online transfer of large data sets AWS DataSync
Partners uploading files over SFTP AWS Transfer Family
Very large offline transfers AWS Snow Family
Centralized backup policies AWS Backup
Failover to AWS after a site outage AWS Elastic Disaster Recovery

How to choose

Start with how the data is accessed:

  1. Does one instance need a disk? Use EBS. Use instance store only for temporary data.
  2. Do several Linux instances need a shared file system? Use EFS.
  3. Do you need Windows, HPC or NetApp or ZFS file features? Use the matching FSx system.
  4. Are the data objects read through an API or by many applications? Use S3, and pick a storage class based on how often you read the data.

Then add the supporting services you need for hybrid access, transfers and backups.

Databases are not storage services

Amazon RDS and DynamoDB store data, but they are database services. They manage their own storage, so you usually choose a database engine or table design rather than a storage type. If you are planning a database, decide the engine first, then look at how the database uses EBS underneath.

For the wider picture across providers, read types of cloud storage services. For a comparison of the two most common AWS choices, read why use object storage instead of block storage? If you are wondering how applications connect to S3, see Is S3 a protocol or API?

The complete guide to cloud storage

Types of Cloud Storage Services With Examples
Read the guide

Keep exploring

Guides from other topics

All topics →