Back to feed
Dev.to
Dev.to
7/16/2026
Building a self-hosted LLM gateway to avoid sharing AWS Bedrock credentials

Building a self-hosted LLM gateway to avoid sharing AWS Bedrock credentials

Original: We almost handed out AWS keys to every team. So I built an LLM gateway instead.

Short summary

A fintech infra engineer explains why handing out AWS Bedrock credentials to non-technical teams is a security and cost nightmare, and details building a self-hosted LLM gateway instead. The gateway issues its own API keys, pins allowed models per key, enforces token budgets, and tracks usage by owner. This approach keeps all traffic inside the company's network perimeter while providing the control and observability that hosted gateways offer.

  • Handing out AWS IAM credentials for Bedrock access creates security and cost-tracking problems at scale
  • A self-hosted LLM gateway issues custom keys, pins models per key, and enforces token budgets
  • Design keeps real AWS credentials only in the gateway process; all logs stay in-house for fintech compliance

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more