Use interface VPC endpoints (AWS PrivateLink) to create a private connection between your VPC and your Amazon Bedrock AgentCore resources
You can use AWS PrivateLink to create a private connection between your VPC and Amazon Bedrock AgentCore. You can access AgentCore as if it were in your VPC, without the use of an internet gateway, NAT device, VPN connection, or Direct Connect connection. Instances in your VPC don't need public IP addresses to access AgentCore.
You establish this private connection by creating an interface endpoint, powered by AWS PrivateLink. We create an endpoint network interface in each subnet that you enable for the interface endpoint. These are requester-managed network interfaces that serve as the entry point for traffic destined for AgentCore.
For more information, see Access AWS services through AWS PrivateLink in the AWS PrivateLink Guide.
Considerations for AgentCore
Before you set up an interface endpoint for AgentCore, review Considerations in the AWS PrivateLink Guide.
AgentCore supports the following primitives through the singular interface endpoint com.amazonaws.:region.bedrock-agentcore
-
Runtime - Agent runtime operations
-
Built-in Tools - Code Interpreter and Browser Tool operations
-
Memory - Memory store operations
-
Identity - Identity management operations
The following primitive uses a separate endpoint:
-
AgentCore Gateway - Uses endpoint
com.amazonaws.region.bedrock-agentcore.gateway
Note
AWS PrivateLink is currently not supported for AgentCore control plane endpoints.
For a list of AWS Regions in which AgentCore interface endpoints are available, see AWS Regions.
Authorization considerations for data plane APIs
The data plane APIs support both AWS Signature Version 4 (SigV4) headers for
authentication and Bearer Token (OAuth) authentication. VPC endpoint policies can
only restrict callers based on IAM principals and not OAuth users. For OAuth-based
requests to succeed through the VPC endpoint, the principal must be set to
* in the endpoint policy. Otherwise, only SigV4 allowlisted callers
can make successful calls over the VPC endpoint.
AWS IAM global condition context keys are supported. By default, full access to AgentCore is allowed through the interface endpoint. You can control access by attaching an endpoint policy to the interface endpoint or by associating a security group with the endpoint network interfaces.
Create an interface endpoint for AgentCore
You can create an interface endpoint for AgentCore using either the Amazon VPC console or the AWS Command Line Interface (AWS CLI). For more information, see Create an interface endpoint in the AWS PrivateLink Guide.
Create an interface endpoint for AgentCore using the following service name format:
-
All primitives (Runtime, Built-in Tools, Memory, Identity):
com.amazonaws.region.bedrock-agentcore -
For AgentCore Gateway:
com.amazonaws.region.bedrock-agentcore.gateway
If you enable private DNS for the interface endpoint, you can make API requests to
AgentCore using its default Regional DNS name. For example,
bedrock-agentcore.us-east-1.amazonaws.com.
Create an endpoint policy for your interface endpoint
An endpoint policy is an IAM resource that you can attach to an interface endpoint. The default endpoint policy allows full access to AgentCore through the interface endpoint. To control the access allowed to AgentCore from your VPC, attach a custom endpoint policy to the interface endpoint.
An endpoint policy specifies the following information:
-
The principals that can perform actions (AWS accounts, IAM users, and IAM roles).
-
For AgentCore Gateway, if your gateway ingress isn't AWS Signature Version 4 (SigV4)-based (for example, if you use OAuth instead), you must specify the
Principalfield as the wildcard*. SigV4 -based authentication allows you to define thePrincipalas a specific AWS identity. This also applies to AgentCore Runtime.
-
-
The actions that can be performed.
-
The resources on which the actions can be performed.
For more information, see Control access to services using endpoint policies in the AWS PrivateLink Guide.
Endpoint policies for various primitives
The following examples show endpoint policies for different AgentCore components: