You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .header.md
+87-5Lines changed: 87 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,14 @@ The [Amazon Bedrock AgentCore](https://aws.amazon.com/bedrock/agentcore/) Terraf
4
4
5
5
## Overview
6
6
7
-
The module provides support for Amazon Bedrock AgentCore Runtime and Runtime Endpoints. This allows you to deploy custom container-based runtimes for your Bedrock agents. You can extend agent capabilities with custom code that runs in your own container, giving you full control over the agent's behavior and integration capabilities.
7
+
The module provides support for Amazon Bedrock AgentCore Runtime, Runtime Endpoints, and Gateways. This allows you to deploy custom container-based runtimes for your Bedrock agents and create gateways, which serve as integration points between agents and external services.
8
8
9
9
This module simplifies the process of:
10
10
11
11
- Creating and configuring Bedrock AgentCore Runtimes
12
12
- Setting up AgentCore Runtime Endpoints
13
-
- Managing IAM permissions for your runtimes
13
+
- Creating and managing AgentCore Gateways
14
+
- Managing IAM permissions for your runtimes and gateways
14
15
- Configuring network access and security settings
15
16
16
17
## Features
@@ -21,10 +22,16 @@ This module simplifies the process of:
21
22
-**Environment Variables**: Pass configuration to your runtime container
22
23
-**JWT Authorization**: Optional JWT authorizer configuration for secure access
23
24
-**Endpoint Management**: Create and manage runtime endpoints for client access
25
+
-**Gateway Support**: Create and manage AgentCore Gateways for model context communication
26
+
-**Protocol Configuration**: Configure MCP protocol settings for gateways
27
+
-**Gateway Security**: Implement JWT authorization and KMS encryption for gateways
28
+
-**Granular Permissions**: Control gateway create, read, update, and delete permissions
29
+
-**OAuth2 Outbound Authorization**: Configure OAuth client for gateway outbound authorization
30
+
-**API Key Outbound Authorization**: Configure API key for gateway outbound authorization
24
31
25
32
## Usage
26
33
27
-
### Basic Runtime and Endpoint
34
+
### AgentCore Runtime and Endpoint
28
35
29
36
```hcl
30
37
module "agentcore" {
@@ -49,7 +56,7 @@ module "agentcore" {
49
56
}
50
57
```
51
58
52
-
### With JWT Authorization
59
+
####With JWT Authorization
53
60
54
61
```hcl
55
62
module "agentcore" {
@@ -75,7 +82,7 @@ module "agentcore" {
75
82
}
76
83
```
77
84
78
-
### With Custom IAM Role
85
+
####With Custom IAM Role
79
86
80
87
```hcl
81
88
module "agentcore" {
@@ -94,13 +101,82 @@ module "agentcore" {
94
101
}
95
102
```
96
103
104
+
### AgentCore Gateway
105
+
106
+
Create and configure an MCP gateway:
107
+
108
+
```hcl
109
+
module "agentcore" {
110
+
source = "aws-ia/agentcore/aws"
111
+
version = "0.0.1"
112
+
113
+
# Enable Agent Core Gateway
114
+
create_gateway = true
115
+
gateway_name = "MyMCPGateway"
116
+
gateway_description = "Gateway for Model Context Protocol connections"
117
+
118
+
# Configure the gateway protocol (MCP)
119
+
gateway_protocol_type = "MCP"
120
+
gateway_protocol_configuration = {
121
+
mcp = {
122
+
instructions = "Custom instructions for MCP tools and resources"
0 commit comments