Closed serrf0f closed 7 months ago
Terraform debug log detected :white_check_mark:
Voting for Prioritization
Volunteering to Work on This Issue
the error message here is saying that the resource you have requested does not have permission to be accessed by the token you are using. this is not a Terraform specific issue as the Terraform provider is just another HTTP client so i'd recommend attempting to replicate and debug this without the provider by using the API directly. alternatively, you can view the network traffic from a browser that performs this behaviour to see what is missing.
if you're still having issues, you're best bet is to reach out to Cloudflare support for guidance. thanks!
Confirmation
Terraform and Cloudflare provider version
Terraform v1.7.5 on darwin_amd64
Affected resource(s)
Terraform configuration files
Link to debug output
https://gist.github.com/serrf0f/02e14d3305e26d0b00b8eef564a151c6
Panic output
No response
Expected output
The cloudflare_api_token is created.
Actual output
error creating Cloudflare API Token "mybucket_rw": Unauthorized to access requested resource (9109)
Steps to reproduce
terraform init
terraform apply
Additional factoids
I do have the Account > API Token > Edit included in my token.
References
No response