Skip to content

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.

  • Brief introduction.
  • Introduction of terraform init, plan, apply, and show.
  • Resource covered: cloudflare_record (DNS record).
  • Store Cloudflare configuration in source control.
  • 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 301 status code from /old-location.php to /expensive-db-call.
  • Review change history.
  • Roll back changes.