IaC Bazaar
LinodePlan-validated

Linode Managed Database (MySQL/PostgreSQL)

HA managed database cluster with allowlists, maintenance windows, and fork/restore support on the new Aiven platform.

terraformAlt & Specialty Clouds#linode

Compare Managed Relational Database across clouds →

linode-databaseterraform v1.7

Verification

Plan-validated

Passed: 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

Functional

  • Live test pending (no cloud run yet)

Last verified 2026-06-28 · how we verify

Verify this download

cosign · sha-256

Don'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 -c

Use it from the registry

terraform · opentofu
module "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_list is 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_size defaults 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, and ca_cert only leave the module through sensitive outputs.
  • Fast-fail invariant. fork_restore_time without fork_source is rejected at plan time (precondition) before any API call.

Requirements

  • Terraform or OpenTofu >= 1.6
  • linode/linode provider >= 3.14, < 4.0
  • A Linode personal access token with Managed Databases write scope (LINODE_TOKEN or the provider token).
  • 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