S3 Files: Mount Your Bucket as NFS, but Read the Sync Rules First

Your data lake sits in S3. The tool that needs it wants a directory path and a normal open() call. For years the answer was one of three compromises: a copy job that stages data onto a file system, a second file system kept in sync by a pipeline nobody enjoys owning, or a FUSE mount that behaves like a FUSE mount.

S3 Files!

On April 7, 2026, AWS announced Amazon S3 Files, which goes after that seam directly. You point a file system at a general purpose bucket (or a prefix inside it), mount it over NFS, and your existing tools see files and directories. The objects stay in S3, and S3 API access keeps working at the same time.

It’s a genuinely useful feature. It’s also a synchronization system with opinions, and the opinions matter more than the feature list. Most of this post is about those.

What it actually is

The launch post from the AWS News Blog says S3 Files is built on Amazon EFS, and that shapes everything about how it behaves. There is a high-performance storage layer (EFS underneath) holding the working set, and S3 remains the source of truth. AWS quotes roughly 1 ms latency for active data.

You can mount it from EC2, ECS and EKS containers, Fargate, and Lambda. The protocol is NFS 4.1 and 4.2, and per the documentation it gives you read-after-write consistency, file locking and POSIX permissions. Network access goes through mount targets in your VPC, one per Availability Zone, and AWS recommends creating one in every AZ you run compute in to avoid cross-AZ transfer charges.

Mounting looks like this, using the s3files filesystem type:

sudo mkdir /mnt/s3files
sudo mount -t s3files fs-0123456789abcdef0:/ /mnt/s3files

The fs- ID above is a placeholder. After that it’s ordinary file I/O. Write a file, and the same content shows up as an object in the bucket.

The read path is where the cost model lives

Not everything you read comes from the file system layer. S3 Files copies only the active working set onto high-performance storage, and routes reads based on size and whether the data is already there.

The read path

The first time you list a directory or open a file in it, S3 Files imports metadata for everything in that directory, plus the data for files under a size threshold that defaults to 128 KiB. Larger files get metadata only, and their bytes are read straight from S3. Reads of 1 MiB or more are streamed from S3 even when a copy exists on the file system.

Two consequences. First, that initial directory listing can take several seconds on a big prefix, because the docs describe it as importing metadata for every file in it. Second, the 128 KiB default is a tuning knob you should look at on day one. If your workload does small random reads inside larger files, such as a database file or an index, the default sends those reads to S3 and you lose the latency you came for. Raising the threshold fixes that, and it also increases what you pay to hold data on the faster layer. AWS documents prefix-scoped import rules for mixed buckets, so hot prefixes can import aggressively while cold ones stay metadata-only.

Data that hasn’t been read for a configurable window (1 to 365 days, 30 by default) is expired from the file system once its changes are safely in S3. Names, sizes and permissions stay, so ls stays fast. The bytes come back on the next read. For batch jobs and training runs, AWS’s best practices suggest a short expiry of 1 to 7 days.

Writes, versioning, and the 60-second window

Writes land on the file system first and are exported to S3 afterward. The synchronization docs are specific about the mechanics:

  • S3 Versioning must be enabled on the bucket.
  • New files become new objects, edits become new object versions, and deletes become delete markers.
  • Export starts after 60 seconds without writes to that file, so a burst of rapid writes is coalesced into a single PUT.
  • POSIX owner, group and mode are stored as user-defined metadata on the object.

The 60-second quiet period is a smart cost control, but it also means “written” and “visible in S3” are different moments. A job that appends to a file every 30 seconds won’t export until a minute after it stops. If a downstream consumer reads through the S3 API (an Athena query, an event-driven Lambda), build that delay into the design. The launch post says changes show up in the bucket within minutes, and changes made in the bucket appear in the file system within seconds, sometimes a minute or longer.

Versioning is a requirement, not an option, so every edited file leaves a trail of noncurrent versions. I’d pair any S3 Files bucket with a lifecycle rule for noncurrent versions from the start, because that bill arrives quietly.

When both sides write, the bucket wins

This is the section I’d want any team to read before they mount anything in production.

If a file is modified through the mount and the same object changes in S3 before the export happens, S3 Files calls that a conflict. The bucket is the source of truth. Your version of the file is moved to a lost and found directory, and the bucket’s version replaces it on the file system.

Write sequence

Nothing is silently destroyed. Your version sits in a directory named .s3files-lost+found-<file-system-id> at the file system root, and you can copy it back to its original path to have it exported as a new version. But files in lost and found are never exported, they stay indefinitely and count toward storage cost, and if you mount through an access point with a restricted root you won’t even see the directory.

AWS’s own advice is to designate one side, file system or S3, as the primary writer. I’d go further and treat that as an architectural requirement. Mixed writers on the same keys is the way this feature turns into a support ticket. Reading through S3 while writing through the mount is fine. Two systems updating the same object is not.

If you adopt this, alarm on the PendingExports, ExportFailures and ImportFailures CloudWatch metrics from the start. A growing PendingExports tells you the workload is producing changes faster than sync can drain them.

Renaming a directory is a bulk copy

S3 has no directories and no atomic rename. What looks like a folder is a shared key prefix. So when you mv a directory on the mount, the operation completes instantly locally, but S3 Files then has to write every object under the new prefix and delete the old one, object by object.

The docs warn that this gets expensive and slow at the scale of tens of millions of files. S3 Files will refuse to create a file system scoped to a prefix where a rename could take around four hours, which they put at roughly 12 million objects, unless you pass --AcceptBucketWarning. During the move both prefixes are visible in the bucket, and objects created under the old prefix mid-rename won’t be carried over.

So scope the file system to the smallest prefix your workload needs, and don’t design a workflow that renames large trees as its commit step. Plenty of pipelines do exactly that (“write to tmp/, then mv to final/“), and this is the place it will hurt.

The limits worth knowing before a design review

The quotas and unsupported features page has the full list. The ones I’d flag:

  • Objects in Glacier Flexible Retrieval, Glacier Deep Archive, and the Intelligent-Tiering archive tiers can’t be read through the file system until restored via the S3 API.
  • No hard links, and S3 ACLs are not preserved once changes flow through the file system. Keep ACLs disabled and use policies.
  • Keys that don’t map to valid POSIX paths (empty components like foo//bar, or . and .. components) are not accessible. Path components over 255 bytes are not supported either.
  • Locking is advisory only. Mandatory locking isn’t supported.
  • Each file system links to one VPC, and you get one mount target per AZ.

If your bucket has years of accumulated, loosely named keys, run a scan for incompatible names before you promise anyone a clean mount.

Cost: where the meter runs

I won’t quote rates here, because the S3 pricing page is the authority and these change. The structure is what matters. You pay a storage rate for the data resident on high-performance storage, access charges for reads and writes against it, and S3 request costs for the synchronization traffic. Large reads that stream straight from the bucket carry no file system data charge.

Reads and writes are metered at a minimum of 32 KB per operation, so tiny I/O is the expensive pattern. AWS recommends I/O sizes of 1 MB or more, and the mount helper defaults to 1 MB buffers. A workload doing millions of 4 KB reads is going to cost more than the same data read in large sequential chunks.

How it compares to FSx and EFS

AWS positions S3 Files for interactive, shared access to data that lives in S3, with multiple compute resources reading and mutating it. For on-premises NAS migrations and workloads needing specific file system features, it points to Amazon FSx, including FSx for Lustre for HPC and GPU clusters.

My read, as opinion: S3 Files is strongest when S3 is already your system of record and you’re tired of the copy layer. It removes the “stage it onto a file system” step for ML data prep, for agent workloads that lean on file-based tools, and for legacy applications that only speak paths. I would not start there for a workload that needs the feature set of a specific FSx flavor, or one where bursts of small random writes dominate, since you’d be paying the sync machinery’s overhead for nothing.

Where I’d start

Pick a read-heavy workload with a single writer and a bounded prefix. Enable versioning plus a noncurrent-version lifecycle rule, set the import threshold and expiry to match the access pattern, create mount targets in each AZ, and put alarms on the export and import failure metrics before the first mount. Then test the failure you’re most likely to hit: have something else write to the same key through the S3 API, and watch what lands in lost and found.

If that test makes you uncomfortable, that’s useful information about whether your data ownership boundaries are clear enough yet. The feature won’t fix those. It will just expose them faster.

S3 Files is generally available in 34 AWS Regions per the announcement, and the launch blog says all commercial Regions, so confirm your Region in the AWS capabilities tool before you plan around it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.