Tutorials
Before you begin, install Terraform. Each tutorial builds on the previous, so you should complete the tutorials in the order shown below.
:::note If you are upgrading from v4, review the migration guide for breaking changes. :::
1 – Initialize Terraform
- Brief introduction.
- Introduction of
terraform init,plan,apply, andshow. - Resource covered:
cloudflare_dns_record(DNS record).
2 – Track your history
- Store Cloudflare configuration in source control.
3 – Configure HTTPS settings
- Modify zone settings.
- Resource covered:
cloudflare_zone_setting.
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.
这篇文档对你有帮助吗?
谢谢你的反馈!