Cloudflare DNS & WAF
Zone DNS records, security settings, and managed WAF rulesets for a Cloudflare zone - provider v5 ready.
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)
- No applicable security policies for this provider
- 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 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 -cUse it from the registry
terraform · opentofumodule "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
Akamai Edge DNS Zone
Authoritative Edge DNS zone with full recordset management on Akamai's DDoS-resilient anycast network.
Akamai GTM Failover/Weighted Domain
Global Traffic Management domain with datacenters and failover or weighted-round-robin properties plus liveness tests.
Azure Private DNS Zone
A self-contained Azure Private DNS zone with virtual-network links and optional record sets for private name resolution across VNets and Private Endpoints - VM auto-registration off by default.
Azure Public DNS Zone & Records
An Azure public DNS zone plus a map-driven set of record sets - A, AAAA, CNAME, TXT, MX, NS, CAA and SRV - with relative naming, verbatim TXT values, and apex footgun guards.
Cloud DNS Zones & Records
Public/private managed zones with record sets, DNSSEC, forwarding and peering configs.
DNS Zone & Traffic Steering
Public/private DNS zones with record sets, failover/geo steering policies and health-check probes.