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
, andshow
. - Resource covered:
cloudflare_record
↗ (DNS record).
- Store Cloudflare configuration in source control.
- Modify zone settings.
- Resource covered:
cloudflare_zone_settings_override
↗.
- 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
301
status code from/old-location.php
to/expensive-db-call
.
- Review change history.
- Roll back changes.