Deploy the self-managed PostgreSQL template with OpenTofu
Deployment · Updated Jun 2026
Coming from another cloud?
▸AWS·RDS Postgres
This Quake AI feature maps to AWS’s RDS Postgres.
▸DigitalOcean·Managed DB
This Quake AI feature maps to DigitalOcean’s Managed DB.
▸Google Cloud·Cloud SQL
This Quake AI feature maps to Google Cloud’s Cloud SQL.
Deploy the self-managed PostgreSQL template with OpenTofu
Stand up PostgreSQL 16 on a private subnet with a dedicated Cinder data volume using the validated OpenTofu templateself-managed-postgres. The database listens on a private address only; cloud-init formats the data volume at /var/lib/postgresql, enables WAL archiving, and installs a scheduled pg_dumpall backup script.
Monthly total for the required template above. Use the configurator below to add optional pieces and see the total update.
What each resource is for
PostgreSQL database
m2a.xlarge · 4 dedicated vCPU, 16 GiB RAM, 1 Gbps
$132.00/mo
Compute shown per role at custom-package rates ($29/dedicated vCPU, $7.25/shared vCPU, $1/GiB RAM). The headline above is the billed total: the cheaper of a named plan and the custom package, plus add-ons.
Private networks, subnets, Neutron routers, and security groups are included with the plan.
VPC objects are usually free to create elsewhere, but NAT gateways bill hourly plus per-GB processed. Quake AI uses router SNAT with no separate NAT line item.
$0.00
Control-plane API requests
OpenStack API calls for provisioning and management are included.
Some managed services on other clouds meter API calls or charge for premium control-plane features.
$0.00
Dev/test vs production
Start on shared CPU for dev/test, then promote to dedicated for production with a flavor resize. The network, storage, and template stay the same.
Dev/test on shared CPU
Burstable s1a flavors; suited to prototyping and low or bursty load.
$33.60/mo
Production on dedicated CPU
The headline estimate above; predictable steady-load performance.
$132.60/mo
Saves $99.00/mo while you build on shared CPU.
Shared flavors carry less RAM (m2a.xlarge (16 GiB RAM) -> s1a.medium (4 GiB RAM)). A resize reboots the instance; data on attached volumes persists. Size the dedicated flavor for the RAM your production workload needs.
Pricing data last validated: . For current rates, check quake.ai/pricing.
Click to zoom
Self-managed PostgreSQL topology: private network, PostgreSQL instance on a dedicated data volume, router to PublicStatic, no floating IP
Enough project quota for one m2a.xlarge instance and one 50 GB block volume (defaults)
A host that routes to the private subnet for SSH after apply (bastion, VPN, or another instance on the same network). See SSH bastion access into a private subnet.
Type yes when prompted. Provisioning takes several minutes while Nova builds the boot volume, Cinder provisions the data volume, and cloud-init formats /dev/sdb and installs PostgreSQL.
When the run finishes, note private_ip from the outputs.