@msl make sure your api key has all the access it needs?
@msl make sure your api key has all the access it needs?
13 Replies
Hey all! Has anyone had any success using the Cloudflare Terraform provider to create Pages projects? Whenever I run my Terraform code, I seem to receive the following error
Tl;dr here seems to be a mysterious 500 error from the API server with no discernable message about what went wrong. Additionally, I'm pretty sure it's not a permissions issue, as I created a key that has every single edit permission in order to test if perms were the issue. My Terraform code seems to be correct and didn't fail validation:
If anyone's seen this error before / sees any super obvious configuration issues, definitely let me know, I've been on this for like two days and am completely stumped ðŸ˜
what's your account id? and could you share your tf debug logs?
Account ID is
accbefee9c471e18e859930cfbe64300
, full TF Cloud logs are attached to this message. Thank you!!!hmm i thought we were dumping the proper api error, i mean it'll just say "internal error" but alas, would have been nice
anyway, let me get this escalated
Thank you so much!!! I wasn't sure if this was something I needed to make an actual support case for, or just a skill issue on my part. Lemme know if you need any more info from me to escalate
Hey there! Just letting you know I picked up the escalation from Walshy here and am waiting to hear back from the engineering team!
Hey there! Are you using an account-owned-token for the authentication on this?
Yup!
Thank you!
They want to rule out the account-owned-token being the problem, could you try a user api token as a potential workaround?
Absolutely!
Getting a different error now. I created my account API key, added the appropriate perms, and added it to my env. I'm now seeing the error message:
As a note, the
***
in that error is my CI runner hiding the key that I provided. I checked the key, and the key that Cloudflare itself gave me was 40 characters long, not 37 like the error message implies. Any ideas?Hi @Sir 2BD , Nolan's headed out for the day, but I'm watching this, as I have a ticket for what may be the same issue. I'll let the team know you're facing a different error now.
That might be some quirk in Terraform. For now, we're going to focus on the initial issue. Hopefully the solution to the other customer's issue will be the fix for this one.
looks like you're using an API token in the API key field.
Ah whoops, you're totally right, I grabbed a personal token instead of a personal key. Re-running now w/ a key, will update shortly
Looks like the API key worked!!! Would it be helpful if I opened a ticket with Cloudflare somewhere to cover the 500s that happen with the account token?
@Sir 2BD , a ticket would be great. Please post that ticket # here, and we can continue the discussion on the ticket.