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

In one sentence

AWS presents a network pattern enabling Amazon Bedrock AgentCore Gateway to access private APIs and MCP servers while maintaining central subnet ownership and bidirectional firewall inspection.

Key points

  • This pattern fits enterprise environments where a central network team owns all subnets and all inter-VPC traffic must pass bidirectional firewall inspection.
  • The solution uses self-managed mode, placing an Amazon VPC Lattice resource gateway in a dedicated network account VPC routed through AWS Transit Gateway to the inspection VPC.
  • After the agent calls the Gateway via an interface endpoint, traffic flows through the resource gateway and central firewall to the tool account's internal ALB or API Gateway.
  • The architecture has limitations, including no firewall payload inspection due to end-to-end TLS, some legs bypassing the firewall, and no end-user identity at the tool.

In depth

An AI-written overview of the original article, not the article itself.

This AWS Machine Learning Blog post introduces a network architecture pattern for connecting Amazon Bedrock AgentCore Gateway to private APIs and Model Context Protocol (MCP) servers. It addresses strict enterprise environments where a central network team owns all subnets and a central firewall must inspect all inter-VPC traffic in both directions.

Core Architecture and Traffic Path

According to the article, neither standard private endpoint mode meets both enterprise requirements on its own. Instead, the pattern modifies self-managed mode by having the network account own the Amazon VPC Lattice resource gateway in a dedicated VPC, which is routed through AWS Transit Gateway to the central inspection VPC. One resource configuration per backend is shared with the AgentCore account via AWS RAM.

When an agent calls the Gateway, the request travels through VPC Lattice to the resource gateway, crosses the central firewall via the transit gateway, and reaches the tool account's internal Application Load Balancer (ALB) or private API endpoint. Responses return along the same inspected path.

Team Responsibilities and Key Decisions

The post outlines clear ownership across teams. The network team manages the resource gateway, dedicated subnets, firewall rules, and AWS RAM shares. The tool team handles the internal ALB, certificates, and app clients, while the AgentCore team configures the Gateway, targets, and credential providers.

Key design decisions include keeping the resource gateway in an unshared VPC, pointing one resource configuration at each internal ALB or execute-api endpoint, and configuring stateful firewall rules to allow port 443 traffic from the resource gateway to the tool VPC and from the ALB to the identity provider for signing keys.

Pattern Limitations

The article notes three limitations to consider before adoption. Because traffic is TLS end-to-end, the firewall only sees flow metadata and Server Name Indication rather than payloads. Additionally, the agent-to-endpoint, Gateway-to-resource-gateway, and identity provider token legs bypass the firewall, and tools only see the Gateway's client identity rather than the end user.

Read originalOpens aws.amazon.com

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source