zone

cloudposse/zone/cloudflare

Terraform Module HCL CLOUDFLARE

Terraform module to provision a CloudFlare zone with DNS records, Argo, Firewall filters and rules

Install
module "zone" {
source = "cloudposse/zone/cloudflare"
version = "1.0.1"
}
plain text: /constructs/tfmod-cloudposse-zone-cloudflare/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module to provision a CloudFlare zone with: DNS records, Argo, Firewall filters and rules. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test. ```hcl module "label" { source = "cloudposse/label/null" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" namespace = "eg" stage = "prod" name = "cf" delimiter = "-"

Inputs (31)
NameTypeDescriptionDefault
zonestringThe DNS zone name which will be added. required
account_idstringCloudflare account ID to manage the zone resource in required
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
recordslist(any)name: The name of the record. type: The type of the record. value: The val[]
pausedboolWhether this zone is paused (traffic bypasses Cloudflare)false
argo_smart_routing_enabledboolWhether smart routing is enabled.true
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
planstringThe name of the commercial plan to apply to the zone. Possible values: `free`, `"free"
argo_enabledboolWhether to enable Cloudflare Argo for DNS zonefalse
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
argo_tiered_caching_enabledboolWhether tiered caching is enabled.true
healthcheckslist(any)A list of maps of Health Checks rules. The values of map is fully compliant withnull
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
typestringA full zone implies that DNS is hosted with Cloudflare. A `partial` zone is typi"full"
enabledboolSet to false to prevent the module from creating any resourcesnull
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
Outputs (10)
meta_wildcard_proxiable — Indicates whether wildcard DNS records can receive Cloudflare security and performance features.
meta_phishing_detected — Indicates if URLs on the zone have been identified as hosting phishing content.
name_servers — A list of Cloudflare-assigned name servers. This is only populated for zones that use Cloudflare DNS
verification_key — Contains the TXT record value to validate domain ownership. This is only populated for zones of type
page_rule_targets_to_ids — A map of the page rule targets to IDs.
id — The zone ID.
plan — The name of the commercial plan to apply to the zone.
vanity_name_servers — A list of Vanity Nameservers.
record_hostnames_to_ids — A map of the zone record hostnames to IDs.
status — Status of the zone.
Resources (6)
cloudflare_argocloudflare_healthcheckcloudflare_page_rulecloudflare_recordcloudflare_zonetime_sleep
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud CLOUDFLARE
★ Stars38
Forks28
Total downloads42.3k
Inputs31
Outputs10
Resources6
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated