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"
}Needs a registry token from /account/tokens. The module itself is free; the account is what identifies you. Full setup: registry docs.
Cite it in your README
badge · attributionPaste this beside the module in the repository that uses it. The badge is rendered from this artifact's verification record, so it reads plan-validated because the record says so, and the link lands on this page.
[](https://www.iac-bazaar.com/catalog/linode-database?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)
Terraform module 1.0.0, plan-validated on IaC Bazaar: [Linode Managed Database (MySQL/PostgreSQL)](https://www.iac-bazaar.com/catalog/linode-database?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)
```hcl
module "database" {
source = "www.iac-bazaar.com/iac-bazaar/linode-database/linode"
version = "1.0.0"
}
```Preview:
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 module in the catalogue. There is no subscription and nothing to buy - the modules are free to download, and they run under Vizier.
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 need an account
The complete copy-paste usage, the full input/output reference, and operational notes are free with an account - shown here and bundled in the download. Sign in and this section fills in.
- Usage
- Inputs
- Outputs
Related modules
civo-database
firewall_id is optional and a database without one answers to every address that can reach its endpoint; nodes = 1 is one node whose failure is downtime; and backups are the platform's, not configurable here. Firewall and network required, two nodes (one by name), the password as a sensitive output, and an output that says no backup schedule can be set.
vultr-database
A managed database gets a public hostname and trusted_ips is optional: left empty, any address on the internet may try the password; the backup hour is picked for you; and a plan with no replicas is one node whose failure is downtime. Trusted ranges required (a /0 refused unless accepted), a VPC attachment, one standby by default, both windows set, and the password as a sensitive output.
azure-sql-managed-instance
The public data endpoint turns a private database into one listening on the internet on port 3342; SQL logins put an administrator password in state when Entra-only authentication would remove them entirely; and zone redundancy is off by default. Private, Entra-only with SQL authentication accepted by name, Business Critical across zones, TLS 1.2, and geo-zone-redundant backups.
oci-postgresql
password_type PLAIN_TEXT writes the admin password into the Terraform state and every plan that shows it; storage that is not regionally durable dies with its availability domain; and a DB system created without a management policy takes no backups. Vault secret reference, regionally durable storage, daily backups optionally copied to another region, a read replica, and an NSG on port 5432.
gcp-alloydb
AlloyDB cluster with primary + read-pool instances, PSC connectivity, automated backups and columnar/vector engine flags.
aws-aurora
Aurora PostgreSQL/MySQL cluster with instances, parameter groups, Serverless v2 scaling, and enhanced monitoring.