Building an AI gateway to Amazon Bedrock with Amazon API Gateway
Architecture Blog
This article presents a reference architecture for building an AI gateway to Amazon Bedrock using Amazon API Gateway, developed by Dynatrace for enterprise-scale access control.
- API Gateway serves as entry point with authorization, throttling, and lifecycle management
- Lambda authorizer handles request authorization including JWT token validation
- Lambda integration function signs requests and routes them to Bedrock endpoints
- Architecture supports streaming responses using new API Gateway response streaming
- Deployment via CloudFormation with optional private endpoint configuration
- Supports authorization, quota management, tenant isolation, and cost control
- Enhancement options include rate limiting, WAF integration, caching, and content filtering
- Complete solution code available on GitHub with testing examples provided
The pattern enables enterprises to govern foundation model usage transparently while maintaining compatibility with standard AWS SDKs like Boto3.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Dec 29
2025
2025
Build an AI-powered website assistant with Amazon Bedrock
Jul 8
2025
2025
Accelerate AI development with Amazon Bedrock API keys
Jun 18
2025
2025
Building AI-Ready Applications with Amazon Bedrock and .NET Aspire
Aug 15
2025
2025
Introducing Amazon Bedrock AgentCore Gateway: Transforming enterprise AI agent tool development
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.