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
Provider
9
Resources
2
Data Sources
State
Management
Provider

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
Provider documentation
config.yml
# 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"
}
Resources

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
Resource reference
config.yml
# 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
}
Workflow

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
GitOps guide
Terminal
~/my-site $
quant deploy ./dist
Scanning 1,847 files...
Comparing checksums with deployed content...
12 files changed
3 files added
1,832 files unchanged (skipped)
15 files uploaded
Cache invalidated
Deployed in 2.1s → https://example.com

Get Started with Terraform

Infrastructure as code in three steps.

1

Add Provider

Add the quantcdn/quant provider to your Terraform configuration.

2

Define Resources

Write HCL to define your projects, domains, crawlers, and rules.

3

Apply

Run terraform apply to create and manage your infrastructure.

Manage Infrastructure as Code

Use the official Terraform provider to manage your QuantCDN infrastructure.

Official provider
Full resource coverage
State management
Rate limiting