AI Cloud Architect

Building an AI gateway to Amazon Bedrock with Amazon API Gateway

AWSHow-to by Thomas Natschläger, Philipp Ushiromiya, Simone Pomata and Mohan Gowda PurushothamaAWS Architecture Blog

In this post, we’ll explore a reference architecture that helps enterprises govern their Amazon Bedrock implementations using Amazon API Gateway. This pattern enables key capabilities like authorization controls, usage quotas, and real-time response streaming. We’ll examine the architecture, provide deployment steps, and discuss potential enhancements to help you implement AI governance at scale.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A reference pattern puts Amazon API Gateway in front of Bedrock to add authorization, usage quotas, throttling and response streaming, with a CloudFormation deployment and sample code.

Who it is for

Platform teams that must control which applications and tenants can call Amazon Bedrock models and track their usage.

Key points

  • Deploys privately by default with CloudFormation; the Lambda authorizer is a placeholder that denies all requests until replaced.
  • Clients keep using standard boto3 calls, and the Lambda forwarder signs requests with SigV4 for any Bedrock API.
  • API Gateway response streaming is used for real-time model output; the post says it launched the same day.

The same at other vendors