Cloudflare Terraform provider
Last updated Apr 21, 2026 Configure Cloudflare using HashiCorp's “Infrastructure as Code” tool, Terraform. With Cloudflare’s Terraform provider ↗︎, you can manage the Cloudflare global network using the same familiar tools you use to automate the rest of your infrastructure. Define and store configuration in source code repositories like GitHub, track and version changes over time, and roll back when needed — all without needing to use the Cloudflare APIs.
Report Terraform configuration issues via GitHub ↗︎.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/terraform/#page","headline":"Cloudflare Terraform provider","description":"Manage your Cloudflare configuration as infrastructure as code using the Terraform provider.","url":"https://developers.cloudflare.com/terraform/","inLanguage":"en","image":"https://developers.cloudflare.com/terraform/og.png?v=4d04801e1994a2fc","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Install Terraform and configure the Cloudflare provider on your operating system. title: Get started image: https://developers.cloudflare.com/terraform/installing/og.png?v=9ec0e980c476f62b
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/terraform/llms.txt
Use this file to discover all available pages before exploring further.
Docs