Error: error reading cloudflare pages project "...": required missing account ID #4783
Open
3 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.10.2
on darwin_arm64
Affected resource(s)
cloudflare_pages_project
Terraform configuration files
Link to debug output
https://gist.github.com/itsdpao/cd8de0e4f406553eb1847ea36fab31d0
Panic output
No response
Expected output
Successfully modify Cloudflare Pages project. In this case, I wanted to add a new subdomain, but I'm hitting this error instead.
Actual output
Steps to reproduce
terraform plan
Additional factoids
I have a project that I'm trying to add a subdomain to. I was able to create the Cloudflare project previously using Terraform, but now I get an error output every time I run Terraform plan.
The module (located at "./modules/pages") that is shared amongst the other Cloudflare projects:
The caller of the module looks like this:
I have checked the Cloudflare Account Id and Cloudflare Zone Ids to be correct, and are properly set in the environment variables. Additionally, when I hardcode those values in the terraform module directly (and not pass them via ENV variables), it spits out the same error.
The weird thing is that this does not happen to any of the other Cloudflare Projects that use this exact same Terraform module. When a terraform plan is run on other projects, the terraform plan is successful. Only this particular project is having this issue. The terraform module code is exactly the same. Only the caller of the module is different with different variables passed in.
References
No response
The text was updated successfully, but these errors were encountered: