File Storage

Amazon EFS

Amazon Elastic File System

Amazon EFS provides a simple, scalable, fully managed elastic NFS file system for use with AWS Cloud services and on-premises resources. It is designed to grow and shrink automatically as you add and remove files.

Overview

What is Amazon EFS?

A fully managed, scalable, and elastic NFS file system for AWS.

Introduction

Amazon EFS is a cloud-native file storage service that follows the Network File System (NFS) protocol. Unlike EBS (which attaches to a single EC2 instance), EFS can be mounted concurrently by thousands of EC2 instances across multiple availability zones. Think of it as a shared network drive that multiple servers can access at the same time.

EFS automatically scales its storage capacity — you don't need to provision storage in advance. As you add files, EFS grows. As you delete files, EFS shrinks. You pay only for the storage you use, with no minimum commitments.

vs EBS

EFS vs EBS vs S3

Understanding the differences between AWS storage options.

FeatureEFSEBSS3
TypeFile Storage (NFS)Block StorageObject Storage
AccessMultiple EC2 instancesSingle EC2 instanceVia internet / SDK
ScalingAuto-scaling (no provisioning)Manual provisioningAuto-scaling
Use CaseShared files, web servingOS, databasesBackups, media, data lakes
ProtocolNFS v4.1Block-levelREST API
PersistencePersistent, sharedPersistent, single-attachPersistent, global
Architecture

How EFS Works

EFS is deployed across multiple Availability Zones for high availability.

EFS Architecture — How It Works
1

EC2 Instances

Multiple instances across Availability Zones

2

Mount Targets

One mount target per Availability Zone

3

EFS File System

POSIX-compliant, auto-scales with usage

4

S3 (Lifecycle)

EFS IA tier auto-moves cold data

POSIX Compatibility: Unlike S3 (object storage) and EBS (block storage), EFS provides a true file system that supports standard file operations (read, write, lock, chmod). Thousands of EC2 instances can mount the same EFS file system simultaneously for shared access.

How It Works

You create a mount target in each Availability Zone where you want to access the file system. EC2 instances in those AZs mount the file system using the standard NFS mount command. EFS automatically replicates data across AZs within a region for durability up to 99.999999999% (11 9's).

Features

Key Features

What makes EFS the right choice for shared file workloads.

Elastic Storage

Grows and shrinks automatically. No need to provision storage — just create the file system and start using it.

Durability & Availability

Standard storage class is regional (multi-AZ) with 11 9's durability. One Zone is for lower-cost, single-AZ workloads.

Performance Modes

Choose General Purpose (low latency) or Max I/O (high throughput, parallel workloads). Bursting or Provisioned throughput.

POSIX Compliant

EFS supports standard POSIX permissions (chmod, chown), file locking, and user/group IDs — just like a local file system.

Lifecycle Management

Automatically move infrequently accessed files to EFS Infrequent Access (IA) to reduce costs by up to 92%.

On-Premises Access

Connect on-premises servers to EFS using AWS Direct Connect or VPN. Your local applications can share files with cloud apps.

Use Cases

Real-World Examples

How EFS powers shared file workloads at scale.

Genomics Research

Research institutions use EFS to share genomic datasets across hundreds of EC2 instances for high-performance computing.