What information is required to add a custom domain to Cloudflare Pages via Terraform?

Responsive Ad Header

Question

Grade: Education Subject: Support
What information is required to add a custom domain to Cloudflare Pages via Terraform?
Asked by:
86 Viewed 86 Answers

Answer (86)

Best Answer
(373)
When adding a custom domain to Cloudflare Pages via Terraform, the essential information required within the `domains` block of the `cloudflare_pages_project` resource is the `domain` itself (e.g., 'www.example.com'). Optionally, you can specify the `status` (e.g., 'active') and `cert_type` (e.g., 'txt') if you need to control these settings explicitly through Terraform.