Cloudflare Terraform Provider
The Cloudflare Terraform provider provides convenient access to the Cloudflare REST API from Terraform.
This provider requires Terraform CLI 1.0 or later. You can install it for your system on Hashicorp's website.
Add the following to your main.tf file:
…Initialize your project by running terraform init in the directory.
Additional examples can be found in the ./examples folder within this repository, and you can refer to the full documentation on the Terraform Registry.
When you initialize the provider, the following options are supported. It is recommended to use environment variables for sensitive values like access tokens. If an environment variable is provided, then the option does not need to be set in the terraform source.
| Property | Environment variable | Required | Default value |
|---|---|---|---|
| zone_id | CLOUDFLARE_ZONE_ID |
false | — |
| user_service_key | CLOUDFLARE_API_USER_SERVICE_KEY |
false | — |
| api_token | CLOUDFLARE_API_TOKEN |
false | — |
| api_key | CLOUDFLARE_API_KEY |
false | — |
| api_email | CLOUDFLARE_EMAIL |
false | — |
| account_id | CLOUDFLARE_ACCOUNT_ID |
false | — |
This package generally follows SemVer conventions, though certain backwards-incompatible changes may be released as minor versions:
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
We are keen for your feedback; please open an issue with questions, bugs, or suggestions.
This SDK is actively maintained, however, it is auto-generated and maintained internally at Cloudflare, so we are no longer accepting pull requests from the community. Many issues are tracked outside of GitHub on internal Cloudflare systems. Please open an issue rather than a pull request. For urgent issues, please contact Cloudflare support.
This repository is auto-generated, and we are no longer accepting pull requests. If you have a bug or feature request, please open an issue.
That said, if you have a fix that is known to work, a pull request can still be helpful as a reference implementation for the team, even though it will not be merged directly. Please open an issue alongside it so we can track the change.
See the contributing documentation for more details.
No open issues yet, or sync has not completed.