Home icon

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.



Go to article

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 4
2025
Amazon Bedrock now supports Responses API from OpenAI
Dec 29
2025
Build an AI-powered website assistant with Amazon Bedrock
Oct 31
2025
Build reliable AI systems with Automated Reasoning on Amazon Bedrock – Part 1
Jul 8
2025
Accelerate AI development with Amazon Bedrock API keys

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.