AIToday
Large Language ModelsAI Coding AssistantsAmazon AI BlogPublished: Nov 13, 2026, 04:00 JST

AWS: Bedrock + LiteLLM gateway ran for several hundred developers

Send on LINE
AWS: Bedrock + LiteLLM gateway ran for several hundred developers

3 Key Points

  1. What happened

    AWS published a guide for a self-service LLM gateway built on LiteLLM running on AWS Fargate, fronting Amazon Bedrock models through an OpenAI-compatible API, with Langfuse for prompt-level tracing and per-key spend limits.

  2. Why it matters

    In AWS's own deployment to several hundred developers, it found that when the model is a raw inference-profile ARN, LiteLLM records $0 per token unless per-model input and output costs are set, so budgets never trigger.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The pattern AWS describes puts a proxy layer between developers and Amazon Bedrock so that a coding assistant such as Claude Code, Continue or Cursor talks to one OpenAI-compatible endpoint. Each model, such as Claude Sonnet and Claude Haiku, gets its own Bedrock Application Inference Profile, which AWS says provides quota isolation and a clean separation between LiteLLM's configuration and Bedrock model versioning. Behind the proxy, Amazon RDS for PostgreSQL holds virtual-key and spend state, Amazon ElastiCache for Valkey handles caching and rate limiting, and Secrets Manager supplies credentials.

AWS's operational findings are where the detail sits. Requests using Claude's extended thinking can take several minutes, so the guide recommends load balancer idle timeouts of at least 900 seconds. On throttling, it argues against falling back from Sonnet to Haiku, because changing models breaks the consistent behavior coding assistants rely on; instead it retries the same model with exponential backoff. It also separates CI/CD and automated code review traffic onto their own inference profiles, since mixing automation with interactive developer traffic makes latency unpredictable and cost attribution harder. AWS says it began with Geographic (US) cross-Region inference and migrated to Global cross-Region inference after reaching Regional quota limits.

The guide also flags smaller deployment traps: roughly 2 GB of memory is described as a safe floor for the Fargate task, the container entrypoint must be overridden if a config is rendered at startup, and IAM role and security-group descriptions must be ASCII. Because the post offers illustrative snippets rather than a single deployable stack, AWS notes there is no one-command teardown and lists the resources that keep billing until removed.

FAQ
What does the developer have to configure in their coding tool?
Just one configuration: an OpenAI-compatible provider, a single base URL, a personal API key, and a model name such as claude-sonnet-4-20250514.
What happens when a developer hits their budget?
LiteLLM returns an HTTP 429 code with a message saying the budget has been exceeded, rather than silently degrading or producing a surprise bill.
Does the self-service key portal work with the free open-source LiteLLM?
No. The free tier supports virtual keys, but the self-service key issuance described requires the Enterprise version; the open-source gateway is documented as free for up to five users.
Amazon AI BlogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleGemini 4 Hydrogen beats Argon at 51 vs. 50, priced at $1.50