Thanks to visit codestin.com
Credit goes to developers.cloudflare.com

Skip to content

Tutorials

Before you begin, 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_dns_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.