Lesson 3 of 3 Shared File Storage

Providing File Access to S3 Data with S3 Files and Storage Gateway

This lesson explains Amazon S3 Files, added to the exam guide in version 1.1, and AWS Storage Gateway, which give file-system access to data that also lives in Amazon S3, in AWS or from on-premises locations.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe what Amazon S3 Files provides.
  • Identify the Storage Gateway types.
  • Choose shared storage for a workload.

Amazon S3 Files

Amazon S3 Files, launched in April 2026, exposes an S3 general purpose bucket as a shared file system that compute resources mount with NFS version 4.1 or later. You create a file system for a bucket and mount targets in your VPC's subnets, and then EC2 instances, ECS and EKS containers (including on Fargate) and Lambda functions mount it, for example with mount -t s3files using the amazon-efs-utils package. The service is built on Amazon EFS technology. Actively used files are kept on a high-performance storage layer with about 1 ms latency, while large sequential reads are served directly from S3.

Changes made through the file system are exported to the bucket as new objects or object versions within minutes, and changes made to the bucket through S3 APIs appear in the file system, usually within seconds. Many clients can mount the same file system concurrently with NFS close-to-open consistency. Access is controlled with IAM policies and POSIX permissions stored as object metadata, data is encrypted in transit with TLS and at rest with SSE-S3 or KMS, and the file system publishes CloudWatch metrics and CloudTrail events. You pay for data stored on the file system's high-performance layer, small-file reads and writes, and the S3 requests used for synchronisation. S3 Files suits workloads that need file semantics, such as agentic AI tools, ML pipelines and legacy tools, on data that other applications also use through the S3 API.

True or false

Amazon S3 Files

Exam skills 1.3.4

Check how Amazon S3 Files presents a bucket as a file system.

Log in to try this activity Interactive activities are free with an account.

AWS Storage Gateway

AWS Storage Gateway is a hybrid service: a gateway appliance runs on premises (as a VM or hardware appliance) or on EC2 and presents local storage interfaces backed by AWS. S3 File Gateway presents NFS and SMB shares whose files are stored as objects in S3, with a local cache for low-latency access to recent data. FSx File Gateway gives on-premises users low-latency cached access to FSx for Windows File Server shares, but it has not been available to new customers since October 2024. Volume Gateway presents iSCSI volumes in cached mode (primary data in S3, cache on premises) or stored mode (primary data on premises, asynchronous backups to AWS as EBS snapshots). Tape Gateway presents a virtual tape library to existing backup software, archiving tapes to S3 Glacier classes. Monitor cache hit percentage and upload buffer metrics; a small cache causes slow reads on premises.

Choosing shared storage

The choice depends on the operating system and protocol, where the clients run, performance needs and whether the data must also be available as S3 objects. The following table summarises the decision.

RequirementChoose
Linux NFS shared by many instances, containers or functions, elastic sizeAmazon EFS
Windows SMB shares with Active DirectoryFSx for Windows File Server
Hundreds of GB/s for HPC or ML, linked to S3FSx for Lustre
NetApp features, multiprotocol or iSCSIFSx for NetApp ONTAP
File access in AWS to data that must stay usable as S3 objectsAmazon S3 Files
On-premises NFS/SMB access with data stored in S3Storage Gateway S3 File Gateway
Replace physical tapes without changing backup softwareStorage Gateway Tape Gateway

The following diagram shows the options from the table with the requirement that points to each.

Choosing shared storage by requirement: Amazon EFS for Linux NFS shared by many clients, FSx for Windows File Server for SMB with Active Directory, FSx for Lustre for HPC and ML linked to S3, FSx for NetApp ONTAP for NetApp features and multiple protocols, Amazon S3 Files for file access to data that must stay usable as S3 objects, and an S3 File Gateway for on-premises access to data stored in S3.
Requirements in a question usually name the protocol, which narrows the choice to one or two options.
Match the pairs

Choosing shared storage

Exam skills 1.3.4

Match each requirement with the storage service that meets it.

Log in to try this activity Interactive activities are free with an account.
Worked example

Shared data for ML and analytics

A data science team keeps 200 TB of training data in S3, used by Athena queries and by Python tools that expect a POSIX file system. Copying the data to EFS would double storage and require synchronisation jobs. The team creates an S3 Files file system on the bucket with mount targets in two AZs and mounts it on training instances and in an EKS job. Files written by the tools appear as objects in the bucket within minutes, so Athena sees the results without a copy step. A security group on the mount targets allows NFS only from the training subnets, and IAM policies restrict which roles can mount the file system.

Check yourself

Which service gives on-premises servers NFS or SMB access to data stored in S3?

Show answer

S3 File Gateway, a type of AWS Storage Gateway.

Exam Tips

Remember for the exam

  • S3 Files mounts an S3 bucket as an NFS v4.1+ file system for EC2, ECS, EKS and Lambda.
  • S3 Files changes sync to the bucket within minutes; bucket changes appear in the file system within seconds.
  • S3 File Gateway gives on-premises NFS/SMB access to data stored in S3.
  • Tape Gateway replaces physical tape libraries; Volume Gateway provides iSCSI volumes.