Terraform v0.13.0
provider "cloudflare" {
version = "2.12.0"
email = "email"
api_key = "api key with lowercase, numbers and uppercase (we have no control over the value of the api key)"
account_id = "account id"
}
Cloudflare accepts the API key that it itself generated on the web portal.
The Cloudflare Terraform provider rejects the API key
Create any API key with lowercase, uppercase and numbers in it (i have also seen underscores in them)
add it to your providers config
run a terraform plan
By the sounds of things, you're using an API _token_ not API _key_. Check out the documentation at https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs#api_token for usage details.
Most helpful comment
By the sounds of things, you're using an API _token_ not API _key_. Check out the documentation at https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs#api_token for usage details.