Linode Managed Database (MySQL/PostgreSQL)
HA managed database cluster with allowlists, maintenance windows, and fork/restore support on the new Aiven platform.
Verification
Plan-validatedPassed: module logic verified on a mocked plan - inputs, validation rules, conditional creation and outputs resolve (no real provider, no cloud).
Conformance
- Static validation (fmt · validate · tflint)
- Security scan clean (Checkov)
- Plan tests (mocked: validation rules · outputs)
Provenance
- SHA-256 checksum
- Cosign signature
Functional
- Live test pending (no cloud run yet)
Last verified 2026-06-28 · how we verify
Verify this download
cosign · sha-256Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.
# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub
# 2. This module's Sigstore bundle
curl -o linode-database-1.0.0.sigstore.json \
https://www.iac-bazaar.com/api/artifacts/linode-database/signature
# 3. Verify the tarball you downloaded
cosign verify-blob \
--key cosign.pub \
--bundle linode-database-1.0.0.sigstore.json \
linode-database-1.0.0.tar.gz
# → Verified OK
# 4. (optional) confirm the checksum too
echo "08b136661a2a39db269bade6b938e82fb210e07045cc95925d27ed0913d17366 linode-database-1.0.0.tar.gz" | sha256sum -cUse it from the registry
terraform · opentofumodule "database" {
source = "www.iac-bazaar.com/iac-bazaar/linode-database/linode"
version = "1.0.0"
}Paid module — needs a purchase (or a subscription that covers it) plus a registry token from /account/tokens. Full setup: registry docs.
Inputs & outputs
Create a free account to read this module's contract
The declared contract — every input name, type, default and description, plus every output — is shown to signed-in accounts, not to anonymous visitors.
A free account sees the contract of every Free module. This one is Premium, so its contract unlocks when you buy it.
Documentation
linode-database
Status: static-validated, live-test pending. Ships under live-test quarantine — no Linode cloud sandbox is wired into the gate yet (Managed Database provisioning takes 10-15 minutes, so the live apply→verify→destroy lane is budgeted separately). Static validation (fmt, validate, tflint) is green.
High-availability Linode Managed Database (MySQL or PostgreSQL) on the new
Aiven platform — one module call provisions the cluster, locks inbound access to
an explicit allowlist (deny-by-default), sets an automated weekly maintenance
window, optionally binds the cluster to a VPC subnet for private-only access,
and supports fork/point-in-time restore. The engine selector picks the
matching v2 resource (linode_database_mysql_v2 /
linode_database_postgresql_v2) at plan time, so a single interface covers both
engines. Works with Terraform and OpenTofu (>= 1.6), Linode provider
>= 3.14, < 4.0.
Secure defaults
- Deny-by-default networking.
allow_listis empty by default, so no external source can connect until you name your application/VPC CIDRs explicitly. TLS + credentials are always required for any allowed source. - TLS enforced by the platform. The Aiven platform requires SSL
(
ssl_connection); the CA certificate is exported (sensitive) for verified connections. - HA by default.
cluster_sizedefaults to 3 (primary + two replicas); drop to 1 only for non-production single-node clusters. - Explicit maintenance window. A weekly patch window (Sunday 04:00 UTC, 3h) is configured rather than left implicit.
- Credentials never leak in plaintext.
root_username,root_password, andca_certonly leave the module throughsensitiveoutputs. - Fast-fail invariant.
fork_restore_timewithoutfork_sourceis rejected at plan time (precondition) before any API call.
Requirements
- Terraform or OpenTofu
>= 1.6 linode/linodeprovider>= 3.14, < 4.0- A Linode personal access token with Managed Databases write scope
(
LINODE_TOKENor the providertoken). - Managed Database provisioning takes ~10-15 minutes; minimum plan sizes apply per engine.
License
Commercial — LicenseRef-IaCBazaar-Commercial. IaC Bazaar EULA. © IaC Bazaar.
Original work (not derived from a third-party module).
Usage code & full reference unlock after purchase
The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence - shown here and bundled in the download.
- Usage
- Inputs
- Outputs
Related modules
AlloyDB for PostgreSQL Cluster
AlloyDB cluster with primary + read-pool instances, PSC connectivity, automated backups and columnar/vector engine flags.
Aurora Cluster (Serverless v2 ready)
Aurora PostgreSQL/MySQL cluster with instances, parameter groups, Serverless v2 scaling, and enhanced monitoring.
Autonomous Database (Serverless)
ATP/ADW/JSON/APEX autonomous database with private endpoint, mTLS wallet output, ACLs, auto-scaling and backup config.
Azure Cosmos DB Account
Cosmos DB (NoSQL or MongoDB API) with multi-region failover, autoscale throughput, private endpoint and backup policy.
Azure SQL Database
Logical SQL server + database with Entra-only auth, firewall/private endpoint, auditing, TDE and failover-group option.
Base Database Service (DBCS VM)
Oracle Database VM system with DB home, TDE via Vault, automated backups and optional Data Guard standby.