Tutorials
Before you begin, make sure you install Terraform. Each tutorial builds on the previous, so you should complete the tutorials in the order shown below.
 1 – Initialize Terraform
- Brief introduction.
- Introduction of terraform init,plan,apply, andshow.
- Resource covered: cloudflare_record(DNS record).
 2 – Track your history
- Store Cloudflare configuration in source control.
 3 – Configure HTTPS settings
- Modify zone settings.
- Resource covered: cloudflare_zone_settings_override.
 4 – Improve performance and reliability
- Add load balancing rules.
- Resources covered:
 5 – Add exceptions with page rules
- Add page rule.
- Resource covered: cloudflare_page_rule.
- Increase security level for a specific URL: /expensive-db-call.
- Add a redirect (URL forward) with a 301status code from/old-location.phpto/expensive-db-call.
 6 – Revert configuration
- Review change history.
- Roll back changes.