IaC Bazaar
CloudflarePlan-validated

Cloudflare DNS & WAF

Zone DNS records, security settings, and managed WAF rulesets for a Cloudflare zone - provider v5 ready.

terraformEdge & DNS#cloudflare

Compare DNS & Traffic Management across clouds →

cloudflare-dnsterraform 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)
  • No applicable security policies for this provider
  • 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 cloudflare-dns-1.0.0.sigstore.json \
  https://www.iac-bazaar.com/api/artifacts/cloudflare-dns/signature

# 3. Verify the tarball you downloaded
cosign verify-blob \
  --key cosign.pub \
  --bundle cloudflare-dns-1.0.0.sigstore.json \
  cloudflare-dns-1.0.0.tar.gz
# → Verified OK

# 4. (optional) confirm the checksum too
echo "115c1fc231c3561db1b694587147fad05f7d947717dfdcfdf3ef237ddd831346  cloudflare-dns-1.0.0.tar.gz" | sha256sum -c

Use it from the registry

terraform · opentofu
module "dns" {
  source  = "www.iac-bazaar.com/iac-bazaar/cloudflare-dns/cloudflare"
  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 Professional, so its contract unlocks when you buy it.

Documentation

cloudflare-dns

Zone DNS records, security settings, and managed WAF rulesets for a Cloudflare zone — provider v5 ready. Built directly against the auto-generated v5 schema (cloudflare_dns_record, cloudflare_zone_setting, cloudflare_ruleset), not the v4 resource names (cloudflare_record, cloudflare_zone_settings_override) that break on upgrade. Works with Terraform and OpenTofu (>= 1.6), Cloudflare provider >= 5.0, < 6.0.

Secure defaults:

  • A/AAAA/CNAME records are proxied (orange-cloud) unless you opt out, so origin IPs stay hidden; proxied records get TTL 1 (automatic) as Cloudflare requires.
  • HTTPS posture enforced via zone settings: always_use_https, automatic_https_rewrites, TLS 1.2 minimum, TLS 1.3 enabled.
  • Cloudflare Managed Ruleset + OWASP Core Ruleset deployed and enabled by default (OWASP blocks at the medium anomaly threshold, 40).

License

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
  • Requirements & notes

Related modules