Deploy the MySQL/MariaDB database template with OpenTofu
Deployment · Updated Jul 2026
Coming from another cloud?
▸AWS·RDS Mysql
This Quake AI feature maps to AWS’s RDS Mysql.
▸DigitalOcean·Managed DB
This Quake AI feature maps to DigitalOcean’s Managed DB.
▸Google Cloud·Cloud SQL Mysql
This Quake AI feature maps to Google Cloud’s Cloud SQL Mysql.
Deploy the MySQL/MariaDB database template with OpenTofu
Stand up MariaDB on a private subnet with a dedicated Cinder data volume using the validated OpenTofu templatemysql-database. The database listens on a private address only; cloud-init formats the data volume at /var/lib/mysql and installs a scheduled mysqldump 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
MySQL database
m2a.large · 2 dedicated vCPU, 8 GiB RAM, 0.5 Gbps
$66.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.
$17.10/mo
Production on dedicated CPU
The headline estimate above; predictable steady-load performance.
$66.60/mo
Saves $49.50/mo while you build on shared CPU.
Shared flavors carry less RAM (m2a.large (8 GiB RAM) -> s1a.small (2 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
MySQL/MariaDB topology: private network, database instance on a dedicated data volume, router to PublicStatic, no floating IP
Enough project quota for one m2a.large 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 MariaDB.
When the run finishes, note private_ip from the outputs.