-
Notifications
You must be signed in to change notification settings - Fork 0
Home
sarmakska edited this page May 3, 2026
·
5 revisions
Solo-engineer cloud stack as code: Vercel + Supabase + Cloudflare + DigitalOcean wired together in a single Terraform repo.
Apply once and you get a Vercel project, a Supabase Postgres database, a Cloudflare zone with R2 + KV, and an optional DigitalOcean droplet — all configured for a typical Next.js side-project or studio site.
This is the infrastructure I use under sarmalinux.com, exposed as reusable modules.
- Vercel module — projects, environment variables, custom domains, deploy hooks
- Supabase module — projects (where the API allows it), database password rotation, schema-management hooks
- Cloudflare module — zones, DNS records, R2 buckets, KV namespaces, Workers (optional)
- DigitalOcean module — droplets for self-hosted bits, project grouping, monitoring agents
- One root
main.tfthat composes them with sensible defaults
- Architecture — module layout and dependency graph
- Quick-Start — apply against your own accounts
- Modules — input/output reference per module
- Roadmap — Hetzner, AWS modules, multi-region
- Repository: https://github.com/sarmakska/terraform-stack
- Whitepaper: https://sarmalinux.com/products/terraform-stack/whitepaper
- How it works: https://sarmalinux.com/products/terraform-stack/how-it-works
- License: MIT