Cloudflare configurations, deployed as code!
I don't yet manage all kinds of Cloudflare resources with Terraform only these:
- DNS Records
All other resources are managed from the Cloudflare UI.
- protectedpii.com
- realfire.au
- realfire.cloud
- realfire.dev
- realfire.link
- realfire.network
To execute a Terraform plan to see dry run of the changes that will be made. Additionally when a merge request is created a pipeline will run a terraform plan and report the status in the merge request.
States are stored in cloudflare KV using worker-tfstate. See Cloudflare Dashboard
Changes may need to made manually & quickly in certain circumstances. Terraform will leave manaully created resources alone (i.e. won't destroy them). But, if you have made a change manually (either while testing or defending an attack), please make sure that you persist the change to this repository as soon as possible.
Deployment is done via GitHubs actions.
Upon opening a merge request a pipeline will run a terraform plan and report the status in the merge request as a comment.
Upon merging a merge request a pipeline will run a terraform apply and report the status in the merge request as a comment.
Formatting is manditory, if you don't format your code it will fail the pipeline.
Please format all Terraform files before committing by running:
$ terraform fmt