Full, comprehensive documentation is available on the Terraform Registry. API documentation and Developer documentation is also available for non-Terraform or service specific information.
Do you have an existing Cloudflare account (or many!) that you'd like to transition to be managed via Terraform? Check out cf-terraforming which is a tool Cloudflare has built to help dump the existing resources and import them into Terraform.
Warning Release candidates may contain bugs and backwards incompatible state modifications. You should not use it in production you are clear on the ramifications and have a clear backup plan in the event of breakages.
For production usage, the 3.x release is recommended using the~> 3
provider version selector.
We are working on releasing the next major version of the Cloudflare Terraform Provider and want your help!
If you have suitable workloads and would like to test out the next release before everyone else, you can opt-in by updating your provider version
to explicitly match one of the release candidate versions (~>
, >
or >=
will not work). See the releases page for available versions.
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.0.0-rc1"
}
}
}
Be sure to check out the version 4 upgrade guide and make any modifications. If you hit bugs, please open a new issue.
To contribute, please read the contribution guidelines.
If you would like to provide feedback (not a bug or feature request) on the Cloudflare Terraform provider, you're welcome to via this form.