Building a Self-Service LLM Gateway with Amazon Bedrock and LiteLLM
This technical guide details how to build a self-service LLM gateway using LiteLLM on AWS Fargate. The gateway abstracts Amazon Bedrock behind an OpenAI-compatible API, enabling centralized access control, per-user cost monitoring, and model performance observability.
Brief published:Source: aws.amazon.com
Illustrative story artwork · aws.amazon.com
Key details
The architecture uses LiteLLM running on AWS Fargate as a proxy to expose an OpenAI-compatible API for accessing Amazon Bedrock foundation models.
The solution includes a self-service portal for developers to provision API keys and monitor usage, alongside integration with Langfuse for observability.
The implementation leverages Amazon Bedrock Application Inference Profiles and scoped IAM roles to provide per-model quota isolation and access controls.