https://github.com/iamask/cloudflare-zone-template
This will setup basic configurations like managed waf rules, custom rules, performance settings etc
https://github.com/iamask/cloudflare-zone-template
cloudflare cloudflare-dns managed-rules terraform
Last synced: about 1 month ago
JSON representation
This will setup basic configurations like managed waf rules, custom rules, performance settings etc
- Host: GitHub
- URL: https://github.com/iamask/cloudflare-zone-template
- Owner: iamask
- Created: 2024-01-01T09:23:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-21T08:10:55.000Z (over 1 year ago)
- Last Synced: 2025-01-21T09:19:05.166Z (over 1 year ago)
- Topics: cloudflare, cloudflare-dns, managed-rules, terraform
- Language: HCL
- Homepage:
- Size: 8.21 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: security/custom_rules/custom_rules.tf
Awesome Lists containing this project
README
This is a basic template to get started with Cloudflare after onboarding an Enterprise zone. State file is stored in terraform Cloud and integrated with Github actions.
**Template will update** :
- Zone level setting
- DNS
- WAF Managed rules
- Custom rules
- Rate limiting
- Transform rules
- Redirect rules
- Cache rules
- Zero Trust
- Cloudflare Access
**Reference** :
- https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs
- https://developers.cloudflare.com/terraform/
**Steps**:
- clone the repo
- run > "Terraform init"
- run > "Terraform plan"
- run > "Terraform apply"
- **Note**: Terraform plan and apply command will prompt for API token and zone ID
**Reference**
- https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
- https://developers.cloudflare.com/fundamentals/setup/find-account-and-zone-ids/