https://pulumi.com logo
Title
p

proud-pizza-80589

03/10/2022, 6:11 PM
Is something up with the cloudflare provider? After working for over a year, i suddenly get the following (3.26.1 + 4.4.0 cloudflare)
Diagnostics:
  cloudflare:index:Record (staging-upload-1-1cd4):
    error: could not validate provider configuration: 1 error occurred:
    	* invalid value for api_key (API key must only contain characters 0-9 and a-f (all lowercased))
The config is set in the automation api with these values:
'cloudflare:accountId': {
    value: config.cloudflareAccountId,
  },
  'cloudflare:apiKey': {
    value: config.cloudflareApiKey,
    secret: true,
  },
  'cloudflare:email': {
    value: config.cloudflareEmail,
  },
and config.cloudflareApiKey contains the correct key.
w

witty-candle-66007

03/10/2022, 6:48 PM
Is it at all possible that you are passing an apiToken for the apiKey? https://www.pulumi.com/registry/packages/cloudflare/installation-configuration/
p

proud-pizza-80589

03/10/2022, 6:53 PM
nope, my global API key
w

witty-candle-66007

03/10/2022, 7:51 PM
So, I just ran a test on my side using local program and automation API with the automation API setting the config and things worked as expected.