Production-ready Terraform examples for deploying stdapi.ai on AWS. Each example provides complete infrastructure-as-code following AWS best practices for security, scalability, and cost optimization.
stdapi.ai is an OpenAI & Anthropic compatible API gateway for AWS Bedrock and AI services. Works out of the box with any app or tool that supports the OpenAI or Anthropic APIs—LangChain, Continue.dev, Open WebUI, n8n, and 1000+ tools.
- 🧠 80+ Models - Claude 4.6+, Nova 2, Llama 4, DeepSeek v3.2, Stable Diffusion, and more
- 🔒 Enterprise Compliance - Data sovereignty, GDPR/HIPAA/FedRAMP ready, AWS region controls
- 💰 AWS Direct Pricing - Pay-per-use with no subscriptions or markups
- ⚡ Advanced Features - Reasoning modes, prompt caching, guardrails, multi-region access
📚 Complete Documentation • 🛒 AWS Marketplace
Single-region production deployment with enterprise security and monitoring.
Perfect for getting started with production workloads. Includes everything needed for secure, scalable deployment in a single AWS region.
Key Features:
- ✅ HTTPS with auto-generated ACM certificate & Route53 DNS
- ✅ AWS WAF with rate limiting and IP filtering
- ✅ Auto-scaling (CPU, Memory, Request-based)
- ✅ CloudWatch monitoring & intelligent alarms
- ✅ API key authentication with AWS Systems Manager
- ✅ KMS encryption for all data at rest
Best for: Most production workloads, quick deployment, single-region requirements
EU multi-region deployment with GDPR compliance and data residency controls.
Enterprise-grade deployment ensuring all data processing stays within EU regions for GDPR compliance. Supports multi-region failover across EU zones.
Key Features:
- ✅ Multi-region Bedrock access (EU regions only: eu-west-1, eu-west-3, eu-central-1)
- ✅ Regional S3 buckets for multimodal operations
- ✅ Data residency controls for compliance
- ✅ All production features (HTTPS, WAF, monitoring)
- ✅ GDPR-ready infrastructure
Best for: Enterprise deployments, GDPR compliance, EU data sovereignty requirements
US multi-region deployment for maximum availability and performance.
Enterprise deployment leveraging multiple US regions for optimal performance and availability. Automatic cross-region failover for high availability.
Key Features:
- ✅ Multi-region Bedrock access (US regions: us-east-1, us-west-2, us-east-2, us-west-1)
- ✅ Regional S3 buckets for optimal performance
- ✅ Cross-region failover and load balancing
- ✅ All production features (HTTPS, WAF, monitoring)
- ✅ Maximum US availability
Best for: Enterprise deployments, US data residency, high availability requirements
Complete AI chat platform with ChatGPT-like interface, web search, RAG, and multimodal capabilities.
Full-featured deployment of Open WebUI powered by stdapi.ai. Includes web search, document processing, vector storage, and all the features you'd expect from a modern AI chat interface.
Key Features:
- ✅ Open WebUI - Feature-rich ChatGPT-like interface
- ✅ Web Search - SearXNG integration for real-time information
- ✅ Web Scraping - Playwright for content extraction
- ✅ RAG Ready - Aurora PostgreSQL with pgvector for semantic search
- ✅ Caching - Valkey (Redis-compatible) for performance
- ✅ Multimodal - TTS, STT, image generation & editing, document processing
Best for: Private ChatGPT alternative, team AI assistant, complete AI chat platform
Choose the example that best matches your requirements:
| Example | Deployment Time | Regions | Compliance | Best For |
|---|---|---|---|---|
| 🏢 Production | ~10 minutes | Single region | Standard AWS | Most workloads, quick start |
| 🇪🇺 Production GDPR | ~15 minutes | Multi-region (EU) | GDPR, EU data residency | EU enterprises, GDPR compliance |
| 🇺🇸 Production US | ~15 minutes | Multi-region (US) | US data residency | US enterprises, high availability |
| 💬 Open WebUI | ~20 minutes | Single region | Standard AWS | Complete chat platform, teams |
Before deploying any example, you'll need:
-
📦 AWS Marketplace Subscription - Subscribe to stdapi.ai
- Free trial available
- Provides access to hardened, production-ready container images
- Includes commercial license for proprietary use
-
🔧 Terraform or OpenTofu - Install Terraform or OpenTofu >= 1.5
-
🔑 AWS Credentials - Configure AWS credentials with appropriate permissions
-
🌐 Domain Name (Production examples only) - A domain managed in Route53 for HTTPS setup
- Choose your example based on your requirements (see comparison table above)
- Clone this repository (or copy the example directory)
git clone https://github.com/stdapi-ai/stdapi.ai-examples.git cd stdapi.ai-examples - Navigate to the example directory
cd getting_started_production # or your chosen example
- Follow the README in that directory for detailed deployment instructions
All examples include:
- ✅ Complete Terraform configuration with sensible defaults
- ✅ Detailed README with step-by-step instructions
- ✅ Infrastructure following AWS best practices
- Getting Started Guide - Complete deployment tutorials and best practices
- Configuration Reference - All environment variables and settings explained
- API Documentation - Complete OpenAI & Anthropic-compatible API reference
- Use Cases & Integrations - Step-by-step guides for Open WebUI, n8n, Continue.dev, and more
- Licensing Guide - AGPL vs Commercial licensing explained
- Feature Roadmap - Current features and upcoming releases
- GitHub Repository - Source code and community discussions
- GitHub Issues - Report bugs or request features
- 📖 Documentation - Check our comprehensive documentation for answers
- 🐛 GitHub Issues - Open an issue for bugs or feature requests
- 💬 Community - Join discussions on GitHub
- 🎯 Enterprise Support - Available with AWS Marketplace subscription
Q: Can I use this in production? A: Yes! These examples are production-ready with enterprise security, monitoring, and compliance features.
Q: Which example should I start with? A: Start with Production for most use cases. Choose Production GDPR or Production US if you need multi-region or specific compliance requirements.
Q: Do I need a domain name? A: Recommended for production. The ALB provides a DNS name you can use without a custom domain for testing.
These deployment examples are licensed under the MIT License - see LICENSE for details.
You are free to use, modify, and distribute these examples for any purpose, including commercial use.
Note: The stdapi.ai container image requires an AWS Marketplace subscription and is licensed separately.
Ready to Deploy?
View Examples • Documentation • AWS Marketplace
Made with ❤️ for the AWS and AI community