Terraform Integration
Infrastructure as
Manage QuantCDN infrastructure with the official Terraform provider. Projects, domains, crawlers, page rules, and configuration - all as code with full state management.
Official Terraform Provider
The official QuantCDN Terraform provider with built-in rate limiting, retry configuration, and full resource coverage for managing your CDN infrastructure.
- Rate limiting support
- Exponential backoff
- Jitter for retries
- Configurable timeouts
# Configure provider
terraform {
required_providers {
quant = {
source = "quantcdn/quant"
}
}
}
provider "quant" {
bearer = var.quantcdn_api_token
organization = var.quantcdn_organization
requests_per_second = 10.0
max_retries = 3
}
# Create project
resource "quant_project" "website" {
name = "my-website"
}
# Add custom domain
resource "quant_domain" "main" {
project = quant_project.website.id
domain = "example.com"
}Full Resource Coverage
Manage projects, domains, crawlers, schedules, headers, and all page rule types. Everything configurable in the dashboard is available as Terraform resources.
- quant_project
- quant_domain
- quant_crawler
- quant_rule_proxy/redirect
# Available Resources:
# - quant_project
# - quant_domain
# - quant_crawler
# - quant_crawler_schedule
# - quant_header
# - quant_rule_proxy
# - quant_rule_redirect
# - quant_rule_custom_response
# - quant_rule_content_filter
# Data Sources:
# - quant_projects (list all)
# - quant_project (get details + token)
# Example: Get project token for CI/CD
data "quant_project" "main" {
machine_name = "my-project"
with_token = true
}GitOps Workflow
Store Terraform configs in Git, review changes in PRs, and apply with CI/CD. Full GitOps workflow for infrastructure management with state backends.
- Git-based workflow
- PR reviews
- CI/CD integration
- State backends
Comparing checksums with deployed content...
→ 12 files changed
→ 3 files added
→ 1,832 files unchanged (skipped)
✓ 15 files uploaded
✓ Cache invalidated
Get Started with Terraform
Infrastructure as code in three steps.
Add Provider
Add the quantcdn/quant provider to your Terraform configuration.
Define Resources
Write HCL to define your projects, domains, crawlers, and rules.
Apply
Run terraform apply to create and manage your infrastructure.
Manage Infrastructure as Code
Use the official Terraform provider to manage your QuantCDN infrastructure.