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, andshow. - Resource covered: 
cloudflare_dns_record↗ (DNS record). 
- Store Cloudflare configuration in source control.
 
- Modify zone settings.
 - Resource covered: 
cloudflare_zone_setting↗. 
- Add load balancing rules.
 - Resources covered:
 
- 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. 
- Review change history.
 - Roll back changes.
 
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Directory
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- © 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark