EC2 + RDS + Kong + GoTrue + PostgREST in a private VPC — production-grade, RLS-enforced, SSH tunnel access.
EC2 jump host with SSM access (no public IP). RDS PostgreSQL 17.6 in a private VPC. Kong API Gateway with SSL termination and rate limiting. GoTrue for authentication (shared hub across multiple products). PostgREST auto-generated REST API. Realtime websocket subscriptions. PgBouncer connection pooling. RLS policies on all tables. Daily RDS snapshots with point-in-time recovery.
One terraform apply provisions the full Supabase stack. Kong routes configured automatically. GoTrue connected to RDS. PostgREST schema introspection generates the API on first deployment. SSH tunnel access for direct psql via the jump host. RLS audit scripts included.
Supabase.com charges per project. Self-hosting requires Kong + GoTrue + PostgREST + Realtime + Storage + PgBouncer configuration — all in a private VPC with RLS policies. Most teams cannot justify the DevOps investment, but they need data sovereignty and per-project pricing is unsustainable at scale.
This module automates what took CAMTECH AI weeks to build: a production-grade, self-hosted Supabase stack.
This module automates what took CAMTECH AI weeks to build: a production-grade, self-hosted Supabase stack. One command provisions everything. One instance serves multiple applications. Zero per-project fees. Full data sovereignty on your AWS account.
MIT licensed. Production-proven — this exact module serves camtech.ai, makarix, and all CAMTECH products as a shared auth hub. Source available on AWS CodeCommit.
Supabase Self-Host Terraform Module is source-available infrastructure built and maintained by CAMTECH AI. Clone it, deploy it, adapt it — or explore our managed infrastructure services if you would rather we run it for you.
VIEW THE SOURCE
View Source on CodeCommit →WANT US TO MANAGE IT?
Explore Managed Infrastructure →WANT TO TALK?
Book a Discovery Call →Every CAMTECH AI pilot ships in 2 weeks — clear scope, fixed timeline, measurable ROI.
From Synap SaaS platforms to free B2C tools — every product built and maintained by CAMTECH AI.