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

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

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

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.

简而言之,Amazon S3 Files 现在可以由没有 VPC 的代理挂载,例如 AgentCore Runtime 上的容器或 Lambda MicroVM(2026 年 11 月 29 日发布)。仅限与文件系统相同的区域,使用 443 端口,经过 IAM 身份验证,默认关闭。端点路径不收取额外费用。发布文章中未说明是否为正式版 (GA) 或预览版以及 IaC 支持情况。区域:未列出具体名单,仅说明“所有提供 S3 Files 和 EFS 的区域”。首先要做的是:新的 s3files-endpoint:* 操作与现有的 s3files:* 授权是分开的,因此旧策略将无法工作。我的观点:这是针对沙盒代理的一个合理修复,但在围绕它进行规划之前,请务必测试 IAM。

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.

发生了什么变化

S3 Files 允许你将 S3 存储桶挂载为文件系统。此前记录的路径是 VPC 挂载目标,这对于默认没有 VPC 连接的代理运行时来说很麻烦。发布文章列举了 Amazon Bedrock AgentCore Runtime 上的容器和 AWS Lambda MicroVM 作为示例。它们现在可以在没有 VPC 配置的情况下进行挂载。

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.

端点路径的工作原理

网络指南将其称为 S3 Files Endpoints。位于同一区域、具有 443 端口出站访问权限的 AWS 计算客户端可以在没有 VPC、挂载目标或对等连接的情况下进行连接。VPC 路径使用 2049 端口和挂载目标。不支持来自其他区域或本地网络的客户端。挂载助手会先尝试可达的挂载目标,如果失败则回退到端点。你需要 amazon-efs-utils 4.0.0 或更高版本(3.0.0 或更高版本足以用于 VPC 挂载目标)。流量经过 TLS 加密和 IAM 身份验证。不支持匿名访问。

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.

IAM 的陷阱

默认情况下拒绝访问。根据端点权限页面,主体需要为每个操作提供两个命名空间,例如 s3files:ClientMount 和 s3files-endpoint:ClientMount。挂载助手会为你调用 s3files:CreateMountSession,因此也要授予该权限。写入和根访问权限遵循相同的模式(ClientWrite, ClientRootAccess)。现有的客户端托管策略(包括 AmazonS3FilesClientFullAccess、AmazonS3FilesClientReadWriteAccess 和 AmazonS3FilesClientReadOnlyAccess)不授予端点访问权限,并且由于文档要求两个命名空间,仅涵盖 s3files: 操作的策略是不够的。