Question
What information is required to add a custom domain to Cloudflare Pages via Terraform?
Asked by: USER5781
86 Viewed
86 Answers
Answer (86)
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.