Pre-configured Kong API Gateway and AI Gateway AMI on Ubuntu with Docker Compose and PostgreSQL. Eliminates manual setup with a working demo route, AI proxy helper, and secure defaults.
Self-Hosted Kong API Gateway and AI Gateway on AWS
Kong API Gateway and AI Gateway packaged by Code Creator is a ready-to-launch AWS Marketplace AMI designed for developers, platform teams, SaaS builders, and technical organizations that need a self-hosted API gateway running directly inside their own AWS account. Deploy a production-ready Kong community edition environment without manual installation, dependency management, or complex configuration.
What You Get After Launch
This AMI delivers a fully configured Kong community edition 3.9.1 deployment on Ubuntu 26.04 LTS using Docker Compose and PostgreSQL. On first boot, the instance automatically detects its public IP and configures a landing page so you can verify the deployment is running. A working demo API route is pre-configured through Kong, letting you validate gateway functionality immediately.
The included command-line helper tools let you check gateway status, view logs, restart services, create backups, export configuration, and set up AI gateway routing - all without leaving the terminal.
AI Gateway Starter Workflow
The AMI includes an AI Gateway starter workflow powered by Kong's bundled AI Proxy plugin. After launch, you can configure an OpenAI-compatible AI proxy route using your own provider API key. This enables you to centralize AI traffic through Kong, applying the same rate limiting, logging, and routing policies you use for your other APIs. No AI provider key is bundled with the AMI - you bring your own credentials.
Example Use Case: Platform Team Centralizing API and AI Traffic
A platform engineering team building a microservices architecture needs a central gateway to manage routing, enforce policies, and gain visibility across internal services. After subscribing and launching the AMI, the team SSH into the instance, verify the demo route is working, and begin adding their own upstream services as Kong routes. When the team later integrates a third-party AI model for internal tooling, they use the AI Gateway helper to configure an OpenAI-compatible proxy route - centralizing AI traffic alongside their existing API routes under a single gateway with consistent logging and access controls.
Security-Focused Architecture
Localhost-only Kong Admin API - The Admin API is restricted to localhost by default, preventing unauthorized remote access to gateway configuration
No public administration GUI - Excluding a third-party public GUI reduces the attack surface compared with older GUI-first deployments
SSH tunnel access - Manage the Admin API securely through SSH tunneling when remote administration is needed
Public proxy on recommended ports - Only Kong proxy traffic is exposed publicly on standard gateway ports
This design keeps the AMI focused on a cleaner, more secure API and AI gateway foundation.
Included Components
Kong community edition 3.9.1
Ubuntu 26.04 LTS
Docker Compose deployment with PostgreSQL backend
Public IP landing page with first-boot automation
Working demo route through Kong
AI Gateway starter helper using Kong AI Proxy plugin
Backup and configuration export helpers
Customer-friendly command-line helpers for status, logs, and restart
Ideal For
API routing and microservices traffic management - Centralize ingress for distributed services
AI traffic proxy workflows - Route and manage AI provider API calls through a unified gateway
Development and staging environments - Spin up isolated gateway instances for testing before production
Internal API mediation - Manage internal service-to-service communication with Kong policies
Self-hosted gateway deployments - Maintain full control over your gateway infrastructure inside your own AWS account
Get Started
Subscribe through AWS Marketplace, choose your EC2 instance type, and launch. The AMI handles first-boot provisioning automatically. Once the instance is running, visit the public IP to confirm the landing page, then use the included helper commands to explore the demo route and begin configuring your own API and AI gateway routes.
Highlights
Launch a fully wired Kong API Gateway without manual PostgreSQL configuration or Docker networking. This AMI ships with Docker Compose, PostgreSQL, and automatic public IP detection already configured on Ubuntu 26.04 LTS. A working demo proxy route is included out of the box so you can verify the gateway is accepting traffic immediately after boot - unlike a from-scratch deployment where you must manually wire the database, configure networking, and create your first route before anything works.
Built-in AI Gateway starter helper that configures an OpenAI-compatible AI proxy route using a single command and your own provider API key. Instead of manually navigating Kong's AI Proxy plugin configuration - creating services, routes, and plugin entries step by step - the helper automates the entire workflow so you can begin routing LLM traffic through your self-hosted gateway right after launch.
The Kong Admin API is restricted to localhost by default, reducing the public attack surface compared to deployments that expose the Admin API on all interfaces. Included helper commands cover status checks, log viewing, restart, backup, and configuration export so you can manage the gateway without memorizing Kong CLI syntax. SSH tunneling provides secure remote Admin API access when needed.
AWS Marketplace now accepts line of credit payments through the PNC Vendor Finance program. This program is available to select AWS customers in the US, excluding NV, NC, ND, TN, & VT.
You pay by the hour based on the EC2 instance size you run. All nine dimensions deliver the same API Gateway and AI Gateway software; they differ only by compute capacity. Two families are offered: t3 instances (medium, large, xlarge, 2xlarge) and m6i instances (large, 2xlarge, 4xlarge, 8xlarge, 12xlarge). Larger sizes provide more CPU and memory for higher API traffic. Your cost scales with the size you select and the number of hours it runs. Choose the size that matches your expected workload.
Top-of-mind questions for buyers
What does one hour of billing represent for these instance dimensions?
Each dimension bills per hour that one EC2 instance of that size runs. You pay for actual running time. A t3.large charge covers one t3.large instance for one hour. Running multiple instances multiplies the hourly charge by the number of instances active.
Am I charged for the software when my instance is stopped?
The hourly software charge applies only while the instance runs. Stopped or powered-off instances do not accrue software charges. You may still incur underlying AWS storage fees for stopped instances, but the software meter tracks running hours only.
Do the AI Gateway features cost extra beyond the hourly instance charge?
The AI Gateway capabilities run as plugins on top of the same gateway software. All nine dimensions include the same software. You pay only the hourly rate for your chosen instance size. Enabling AI plugins does not add a separate pricing dimension here.
developer.konghq.com+1
Helpful?
Vendor refund policy
No contracts. We do not currently support refunds, but you can cancel at any time.
How can we make this page better?
Tell us how we can improve this page, or report an issue with this product.
Give us feedbackReport a problem with this product or seller
Legal
Vendor terms and conditions
Upon subscribing to this product, you must acknowledge and agree to the terms and conditions outlined in the vendor's End User License Agreement (EULA).
Content disclaimer
Vendors are responsible for their product descriptions and other product content. AWS does not warrant that vendors' product descriptions or other product content are accurate, complete, reliable, current, or error-free.
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
For support inquiries related to this Kong API Gateway and AI Gateway AMI, contact Code Creator by email at info@codecreator.com.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.
Self-hosted AI gateway for centralized LLM provider routing, virtual key management, and spend tracking. Deploy on your own AWS instance with automated first-boot setup.
Kong Konnect is the unified API management platform delivered as a service that can manage Kong Gateway, Kong AI Gateway, Kong Ingress Controller, and Kong Mesh with a single management console to deliver API configuration, portal, service catalog, and analytics capabilities.
Be the first to review this product. We've partnered with PeerSpot to gather customer feedback. You can share your experience by writing or recording a review, or scheduling a call with a PeerSpot analyst.