Cloudflare Enablement
Cache
Testing
Edit this page on GitHub
Set theme to dark (⇧+D)

Terraform example

The following example defines a single cache rule for a zone using Terraform. The rule configures several cache settings and sets a custom cache key for incoming requests addressed at example.net.

Terraform cloudflare_ruleset resource

For additional guidance on using Terraform with Cloudflare, refer to Terraform.