"Storage is storage, any kind will do." Not on AWS. There are three different ways to store data, and each one behaves differently: how you reach it, how many servers can use it at once, how fast it is and what it costs. Pick the wrong one and you get slow applications, servers that can't share data, or a bill far bigger than it needs to be.
Object storage: Amazon S3
Object storage keeps each file as a whole object: the data, its metadata and a unique key (its name). You don't mount it like a disk. You read and write whole objects through an API or a URL.
- Scale: no capacity to provision, and no limit on the number of objects in a bucket.
- Cost: the cheapest place to keep large amounts of data, with storage classes for colder data.
- Best for: backups, logs, media, static websites, data lakes and AI datasets.
The trade-off: you can't edit a few bytes in the middle of an object. You replace the whole object. See Amazon S3 explained for the basics.
Block storage: Amazon EBS
Block storage is a raw virtual disk. Amazon EBS volumes attach to an EC2 instance, which formats them with a file system and uses them like a local drive.
- An EBS volume lives in one Availability Zone and attaches to an instance in that same zone.
- Normally one volume serves one instance. The exception is Multi-Attach, available only on Provisioned IOPS SSD volumes (io1 and io2), for up to 16 Nitro-based instances in the same zone, and only with software built for shared disks.
- Best for: boot volumes, databases and anything that needs fast, low-latency disk access from one server.
A common mistake: treating an EBS volume as shared storage. Mount a normal file system like ext4 or XFS on two servers at once and you risk corrupting it.
File storage: Amazon EFS and FSx
File storage gives you a shared drive with real folders and file permissions, reached over the network.
- Amazon EFS speaks NFS. Many EC2 instances, containers on ECS, EKS or Fargate, and Lambda functions can mount the same file system at the same time. A Regional file system stores data across multiple Availability Zones and grows and shrinks automatically.
- Amazon FSx offers managed file systems for specific needs. FSx for Lustre is built for speed: machine learning, high performance computing and video processing, with sub-millisecond latency. It can link to an S3 bucket and present its objects as files.
EFS doesn't support Windows instances. For Windows file shares, look at FSx for Windows File Server.
Where AI fits
AI workloads use all three, but S3 is the home for datasets, model weights and training checkpoints, because it is cheap, durable and scales without planning. The question is how training jobs reach that data quickly:
- FSx for Lustre linked to a bucket presents S3 objects as files at high throughput, and SageMaker AI can use it as a training input to skip the initial download from S3.
- Amazon S3 Files, launched in April 2026, lets EC2, containers and Lambda functions mount a general purpose bucket as a shared NFS file system, so tools that expect files can read datasets and write checkpoints that land back in S3.
EBS still matters too: it is the fast local disk where a single training or inference instance keeps its working files.
Quick recap
- Object (S3): whole files with keys, through an API. Huge scale, low cost.
- Block (EBS): a virtual disk for one server, in one Availability Zone. Fast.
- File (EFS, FSx): a shared drive many servers mount at once. FSx for Lustre for ML and HPC speed.
- For AI, keep the data in S3 and pick a fast path to it: FSx for Lustre or S3 Files.