Skip to content
sarmakska edited this page May 3, 2026 · 5 revisions

terraform-stack

Solo-engineer cloud stack as code: Vercel + Supabase + Cloudflare + DigitalOcean wired together in a single Terraform repo.

What this is

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.

What's in the box

  • 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.tf that composes them with sensible defaults

Read next

  • 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

Project links

Clone this wiki locally