jthomperoo
CDCloudflare Developers
•Created by jthomperoo on 10/24/2024 in #general-help
Account API Token vs User API Token causing 500s from CloudFlare API
I'm a bit unsure if I've bumped into a bug with the CloudFlare API when using the Account API Token beta, or if I'm just using something incorrectly.
I'm looking at switching from using User API Tokens to Account API Tokens for provisioning our infrastructure, but switching to this new token has resulted in 500 responses from the CloudFlare API when I run our Terraform deployment.
We need to modify DNS, manage CloudFlare Pages, and manage SSL/TLS with the token.
I have set up a token like this:
Then we have resources like this in our Terraform script:
Whenever I try to apply this it fails to fetch the state of these origin CA certificates with an error like this:
Looking at the actual API response it is just this:
This all works perfectly fine with the User API Token, so I'm just trying to understand if I've misconfigured something here, or if there's a bug here/something that isn't supported yet by the Account API Token beta.
Thanks!
1 replies