cloudflare_zone_settings_override (Resource)

Provides a resource which customizes Cloudflare zone settings.

Plan-Dependent Settings

Note that some settings are only available on certain plans. Setting an argument for a feature that is not available on the plan configured for the zone will result in an error:

Error: invalid zone setting "\<argument\>" (value: \<value\>) found - cannot be set as it is read only

This is true even when setting the argument to its default value. These values should either be omitted or set to null for zones with plans that don't support the feature. See the plan feature matrices for details on feature support by plan.

Example Usage

resource "cloudflare_zone_settings_override" "test" {
  zone_id = d41d8cd98f00b204e9800998ecf8427e
  settings {
    brotli                   = "on"
    challenge_ttl            = 2700
    security_level           = "high"
    opportunistic_encryption = "on"
    automatic_https_rewrites = "on"
    mirage                   = "on"
    waf                      = "on"
    minify {
      css  = "on"
      js   = "off"
      html = "off"
    }
    security_header {
      enabled = true
    }
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for settings

Optional:

Nested Schema for settings.minify

Required:

Nested Schema for settings.mobile_redirect

Required:

Nested Schema for settings.security_header

Optional:

Nested Schema for initial_settings

Read-Only:

Nested Schema for initial_settings.minify

Read-Only:

Nested Schema for initial_settings.mobile_redirect

Read-Only:

Nested Schema for initial_settings.security_header

Read-Only: