AWS Proposes Centralized Inspection for AgentCore Gateway Access to Private APIs: Placing VPC Lattice Resource Gateways in the Network Account
Under the constraint that an enterprise network team owns all subnets and all cross-VPC traffic must traverse a central firewall, AWS proposes a tested architectural pattern: the network account creates and owns the VPC Lattice resource gateway, places it in a dedicated VPC, and routes it via Transit Gateway to an inspection VPC. This ensures every request and response from AgentCore Gateway to private APIs and MCP servers passes through the firewall. The article also clarifies three key limitations of this pattern: inability to perform payload inspection, partial bypass of the firewall by certain network paths, and the tool's inability to identify end-user identity.
Many enterprises face an apparently unsolvable conflict in their network architecture: the network team owns all VPCs and subnets, while application teams can only use shared subnets; simultaneously, all cross-VPC traffic must pass through a central firewall for inspection. When AI agents need to call internal private APIs or MCP servers via AgentCore Gateway, both requirements apply at once—the Gateway needs network entry points to reach backends, but those entry points cannot bypass the firewall.
AgentCore Gateway accesses private targets through VPC Lattice resource gateways, offering two modes: Managed mode, where AgentCore creates the resource gateway in the Gateway account (suitable when the Gateway account can own subnets); and Self-managed mode, where the resource gateway is placed in subnets with direct access to the backend (suitable when centralized inspection between the Gateway and tools is not required). Neither mode satisfies both constraints simultaneously. AWS’s proposed solution is a variant of self-managed mode: the network account creates and owns the resource gateway, places it in a dedicated VPC whose subnets are not shared with any account and contain no backends, but routes point to the Transit Gateway, ensuring every request and response traverses the inspection VPC.