Amazon Bedrock AgentCore Gateway Connects to Private APIs and MCP Servers
AWS has released documentation for Amazon Bedrock AgentCore, allowing it to connect to private resources like APIs and databases without public internet exposure.
2 min read
What Happened
Amazon Bedrock AgentCore now supports private connectivity to resources hosted inside an Amazon Virtual Private Cloud (VPC) or in on-premises environments connected to a VPC [2]. This connectivity allows the service to reach internal REST APIs, databases, and Model Context Protocol (MCP) servers without exposing these services to the public internet [2].
To facilitate this, the system uses an Amazon VPC Lattice resource gateway, which acts as the network entry point for traffic coming from AgentCore [2]. This gateway is associated with specific subnets and security groups within a VPC [2]. The documentation outlines two primary ways to manage these connections:
- Managed VPC resources: In this approach, Amazon Bedrock AgentCore creates and manages the VPC Lattice resource gateway and the resource configuration for the user [2]. Users only need to provide their VPC, subnets, and optional security groups [2]. This method is designed for simpler in-account VPC connectivity and integrates into existing network architectures, such as hub-and-spoke models [2]. This option does not require VPC Lattice IAM permissions, Service Control Policy (SCP) changes, or additional approval processes [2].
- Self-managed Lattice resources: Users can choose to create and manage the VPC Lattice resource gateway and resource configuration themselves [2]. This method offers more governance and visibility, allowing users to see which services connect to which domains, manage access, and revoke connections at a granular level [2]. It also allows for direct cross-account connectivity via AWS Resource Access Manager (RAM) without the need for VPC peering or Transit Gateways [2]. This option does not require VPC Lattice onboarding or allowlisting, but it does require standard Amazon EC2 permissions and the ability to create a service-linked role [2].
In a centralized network model, where one account owns every VPC and a central firewall inspects all traffic, a tested pattern exists to connect the Amazon Bedrock AgentCore Gateway to private APIs and MCP servers [1]. In this setup, the VPC Lattice resource gateway is placed in the network account so that every hop in the connection crosses the firewall [1].
Who Is Affected
This update affects enterprises and developers using Amazon Bedrock AgentCore who need to connect AI agents to private internal data or services. It is particularly relevant for organizations using a hub-and-spoke network architecture or those requiring centralized traffic inspection through a firewall [1].
About the author
Ali Raza, Founder
Sources
- Connect Amazon Bedrock AgentCore Gateway to private APIs in a hub-and-spoke network with centralized inspection — AWS Machine Learning Blog Official source
- Connect to private resources in your VPC using VPC Lattice - Amazon Bedrock AgentCore — AWS Official source
Drafted with AI assistance from the reports above and checked automatically for sourcing. Always confirm dates, fees and requirements on the official website before acting. Report an error · How we correct mistakes
Questions or something to add?
Ask below. We read every comment and reply when we can.