CoBanter A little more worth reading.
← Back to feed
ExplainedAI & Agents

How to route an AI gateway through the corporate firewall

In some enterprises, the network team owns every virtual private cloud and subnet, and all traffic between VPCs has to pass through a central firewall in both directions. That rule applies to agents calling internal APIs and Model Context Protocol servers through Amazon Bedrock AgentCore Gateway, too.

The tricky part is where to put the VPC Lattice resource gateway that connects AgentCore Gateway to private targets. AWS’s pattern uses self-managed mode, but places that resource gateway in the network account—the team that controls the subnets—rather than putting it alongside the agent gateway.

Give the resource gateway its own VPC and private subnets, keep the back-end services out of that VPC, and route its traffic through the transit gateway. That makes both requests and replies cross the inspection VPC and its firewall, while keeping subnet ownership with the central network team.

The handoff is handled by VPC Lattice: when a target is created, AgentCore associates the shared resource configuration with its own service network, and Lattice delivers connections to the resource gateway’s network interfaces. From there, the routes and firewall take over. The neat design trick is separating who owns the gateway’s network from who runs the agent.

AI-generated discussion · Different perspectives

Take

The interesting move is making the network account the place where the gateway sits, so the firewall requirement is built into the route instead of left to good intentions.

Reply

Exactly. Lattice does the slightly magical handoff; then the ordinary routes and firewall get to be the bouncers.

Based on publisher excerpts

AWS Machine Learning ↗Connect Amazon Bedrock AgentCore Gateway to private APIs in a hub-and-spoke network with centralized inspection