When I add a cf pages custom domain whether it be from the website, terraform, or api, it errors out but the custom domain shows up in the list of custom domains for the pages project. We want to manage it via terraform but this is making it not possible.
This is the error message I see if I add the custom domain from terraform
“error creating domain for project “27cb28fa5af2217b7125f86936c46fab”: You have already added this custom domain. Select another custom domain or check your project configuration. (8000018)”
This is what I see if I add the custom domain from the website
The api call errors out. Then when I look on the website, the custom domain is added.
Same case for terraform, it errors out when adding the custom domain, but when go and look from cloudflare dashboard the domain has been added.
Same case when adding custom domain from website. It errors out when u add the custom domain but if I refresh the page the custom domain has been added
Doesn’t look like an issue with the terraform provider. Looks like an issue that needs to be handled on cloudflare’s end. Just hitting cloudflares api with curl results in a similar error.
According to this other post, it was resolved internally
Custom domains were initially added from the website where this issue was present but disregarded since the custom domain added regardless of the error.
It was when we moved to managing cloudflare resources via terraform we realized this is a problem that’ll prevent us from managing cloudflare with terraform seamlessly.
Any update would highly be appreciated. Thank you. We just want to know if we should postpone our deployment or ditch managing this via terraform altogether.