Amazon Bedrock’s AgentCore Gateway now supports API Gateway, enabling seamless integration of existing REST APIs into agentic applications using the Model Context Protocol (MCP), enhancing security and observability. By Sparsh Wadhwa, Dhawalkumar Patel, and Heeki Park.
The article provides a detailed walkthrough of setting up an existing REST API with API Gateway as a target for AgentCore Gateway. It covers the prerequisites, including an AWS account with an existing REST API and necessary IAM permissions. The walkthrough includes steps for setting up inbound and outbound authorization, with options for IAM-based authorization and API key authorization. Code examples using Boto3 are provided for creating a gateway and configuring targets, along with examples of target configurations and credential provider configurations.
The integration supports IAM and API key authorization, ensuring secure connections between AgentCore Gateway and API Gateway. Observability is a key feature, with detailed logs and metrics available through Amazon CloudWatch, AWS CloudTrail, and AWS X-Ray. The article also includes a section on testing the gateway with the Strands Agent framework, demonstrating how to list and call available tools from the MCP server.
The article concludes by emphasizing the benefits of this integration, such as simplifying the connection between API Gateway and AgentCore Gateway, eliminating the manual export/import process, and enabling the use of existing REST APIs as tools for agentic applications. It also highlights the built-in security and observability features, making it easier for developers and DevOps engineers to modernize their API infrastructure for AI-powered systems. Nice one!
[Read More]