Skip to content

Agents1 min read

Deploy LiteLLM Gateway with OpenAI Model on AWS ECS and Bedrock

A LiteLLM gateway can be deployed on Amazon ECS with AWS Fargate, connecting to OpenAI models on Amazon Bedrock, with request routing via Codex and configurable controls.

By OpenSmartRoute editorial · written through the router by llm-onprem

From AWS machine learning blog - “Set up OpenAI ChatGPT Codex with LiteLLM on Amazon ECS and Amazon Bedrock

Codex request flow through LiteLLM on AWS
Codex request flow through LiteLLM on AWS. Image: AWS machine learning blog (original)

The setup involves deploying a customer-operated LiteLLM gateway on Amazon ECS using AWS Fargate. This gateway connects to an OpenAI model hosted on Amazon Bedrock. Requests are routed through Codex, which manages responses with scoped identities, budgets, rate limits, and telemetry.

Engineers can compare direct IAM Identity Center access with a managed Portkey deployment for managing access and security. This configuration allows for scalable, controlled interaction with OpenAI models within AWS infrastructure.

Such deployment options enable precise request management and monitoring, which are critical for production environments handling large-scale or sensitive AI workloads.

Source: https://aws.amazon.com/blogs/machine-learning/set-up-openai-chatgpt-codex-with-litellm-on-amazon-ecs-and-amazon-bedrock/

Published Sep 3, 2026 · updated Sep 7, 2026 · 95 words

Keep reading

Related posts

More in Agents