What carries over
Cloudflare habit / concept Terraform equivalent Why it matters
Declarative resource definition – you describe what you want (e.g., a DNS record) and the platform enforces it. Terraform’s resource blocks ( resource "cloudflare_record" "example" { … } ). Both avoid imperative scripting; the engine reconciles state.
Zone‑level thinking – you always work inside a zone (domain). Terraform providers require the zone_id attribute for most Cloudflare resources. Keeps the same scoping model; you still need to fetch the zone ID (often via data "cloudflare_zones" ).
API token scopes – you limit tokens to specific permissions. Terraform provider configuration uses the same token ( api_token = var.cloudflare_api_token ). No change in security model; just pass the token as a variable.
Versioned API endpoints – you target a specific API version ( v4 ). Terraform provider pins to a Cloudflare API version internally; you don’t specify it, but you should pin provider version in required_providers .…