S3 Files Now Mounts From Outside Your VPC: Endpoints, IAM and Cost

2026-12-01来源 dev.toEnglish

TL;DR

  • Amazon S3 Files can now be mounted by agents that have no VPC, such as containers on AgentCore Runtime or Lambda MicroVMs (What's New, 29 Nov 2026).
  • Same Region as the file system only, port 443, IAM-authenticated, off by default. No extra charge for the endpoint path.
  • GA or preview and IaC support: not stated on the launch post. Regions: no list, only "all Regions where S3 Files and EFS are available".
  • Do this first: the new s3files-endpoint:* actions are separate from your existing s3files:* grants, so old policies will not work.
  • My view: a sensible fix for sandboxed agents, but test the IAM before you plan around it.

Contents

  • What changed
  • How the endpoint path works
  • The IAM catch
  • What this means for you
  • Related posts
  • Sources

What changed

S3 Files lets you mount an S3 bucket as a file system. Previously the documented path was a VPC mount target, which is awkward for agent runtimes that do not have a VPC connection by default. The launch post names containers on Amazon Bedrock AgentCore Runtime and AWS Lambda MicroVMs as examples. They can now mount with no VPC configuration.

Item What AWS states
Announced 29 Nov 2026
Status (GA / preview) Not stated
Regions No list; the post says no extra charge in all Regions where S3 Files and EFS are available
Constraint Agent must be in the same Region as the file system
Default Off; access limited to IAM roles and users you grant
Cost No additional charge, per the launch post and the networking guide

How the endpoint path works

The networking guide calls this S3 Files Endpoints. A client on AWS compute in the same Region, with outbound access on port 443, connects with no VPC, mount target or peering. The VPC path uses port 2049 and a mount target. Clients from other Regions or on-premises networks are not supported.

The mount helper tries a reachable mount target first and falls back to the endpoint. You need amazon-efs-utils 4.0.0 or later for this (3.0.0 or later is enough for VPC mount targets). Traffic is TLS-encrypted and IAM-authenticated. Anonymous access is not supported.

One cost trap from the same guide: if your client runs inside a VPC and uses the endpoint, it needs an internet or NAT gateway, and NAT data processing charges apply.

The mounting page shows the basic command on EC2:

sudo mount -t s3files $FS:/ /mnt/s3files 

I did not find an AgentCore or Lambda MicroVM specific mount command in the pages I read, so check the docs for your runtime.

The IAM catch

Access is denied by default. Per the endpoint permissions page, a principal needs both namespaces for each action, for example s3files:ClientMount and s3files-endpoint:ClientMount. The mount helper calls s3files:CreateMountSession for you, so grant it too. Write and root access follow the same pattern (ClientWrite, ClientRootAccess).

The existing Client managed policies including AmazonS3FilesClientFullAccess, AmazonS3FilesClientReadWriteAccess and AmazonS3FilesClientReadOnlyAccess, do not grant endpoint access, and since the docs require both namespaces, a policy covering only s3files: actions will not be enough. There are three managed policies for it: AmazonS3FilesEndpointClientFullAccess, AmazonS3FilesEndpointClientReadWriteAccess and AmazonS3FilesEndpointClientReadOnlyAccess. Two condition keys let you tell the paths apart: s3files:AccessedViaMountTarget and s3files:AccessedViaRegionalEndpoint.

Revocation is not instant. Existing endpoint connections fail at reauthentication, which runs every 5 minutes. CloudTrail records each CreateMountSession call. The policy examples page includes an endpoint-only file system policy and a cross-account example.

What this means for you

Who should care

If you run agents in sandboxes with no VPC and wanted a shared file view of S3 data, this removes the VPC plumbing. If your compute already sits in the file system's VPC, you can ignore it. I would trial it on a non-production file system first, since GA status is not stated.

What gets simpler, what gets harder

You skip VPC attachment, mount targets and the port 2049 networking setup for these agents (my inference; the guide lists the port, not the security group step). In return you take on a second IAM surface: every role needs the endpoint actions too, and the old broad policies silently do not cover it.

Cost

Both the launch post and the networking guide say no additional charge for the endpoint. The underlying S3 Files charges still apply. Per the S3 pricing page as of 1 Dec 2026, the worked example uses $0.30/GB for high-performance storage (the page gives no time unit), with reads from the file system at $0.03/GB (small files) and writes at $0.06/GB. Reads served directly from the bucket carry no S3 Files data charge, though S3 GET fees apply. The metering page states a 32 KiB minimum metered size per read or write. I could not read Regional price differences, so check your Region.

Prerequisites and limits

Per the prerequisites page, you need a general purpose bucket with Versioning enabled and SSE-S3 or SSE-KMS. The quotas page lists 25,000 connections per file system, 1,000 file systems per account (adjustable) and a 48 TiB maximum file size. Limits specific to the endpoint path are not listed there.

Pairing it with other services

A pattern I would try: an agent on AgentCore Runtime mounts the file system through the endpoint, works on files, and S3 holds the result. Use a dedicated role per agent and the AccessedViaRegionalEndpoint condition to keep it off the VPC path. Pair it with CloudTrail alerts on CreateMountSession to see which agents mount what. I have not tested this; it is my reading of the docs.

Related: sandboxing agent code is covered in the Lambda MicroVMs post below.

Next steps

Check your amazon-efs-utils version, attach an endpoint managed policy to one test role, and confirm the mount from a no-VPC runtime. Then ask whether your 5 minute revocation window is acceptable.

Related posts

Sources

Drafted with AI assistance. I review and edit every post.

原文:https://www.a8q9.cn/en/article/s3-files-now-mounts-from-outside-your-vpc-endpoints-iam-and-cost-230d40.html

相关文章