noob question - I am trying to work with pulumi-cl...
# getting-started
h
noob question • I am trying to work with pulumi-cloudflare provider • I have the following name in my
Pulumi.yaml
called
name:test-setup
• I created a stack called
test
and in the stack • now I have added a secret using
pulumi config set --secret cloudflare:apiToken <value>
• now when I try to run the
pulumi up
I get following
Copy code
Type                 Name             Plan       Info
 +   pulumi:pulumi:Stack  test-setup-test  create     2 errors

Diagnostics:
  pulumi:pulumi:Stack (test-setup-test):
    error: Missing required configuration variable 'test-setup:cloudflare:apiToken'
        please set a value using the command `pulumi config set --secret test-setup:cloudflare:apiToken <value>`
    error: an unhandled error occurred: program exited with non-zero exit code: 1
kind of stuck here, what am I missing? any thoughts ?
l
You say you used the command
pulumi config set --secret cloudflare:apiToken <value>
but the error message says you need to use the command
pulumi config set --secret test-setup:cloudflare:apiToken <value>
Have a look in your stack yaml file, then run that command and look again. Note the difference.
l
@handsome-city-6906 you configured the secret correctly, according the docs. I’m curious to see your source code. I would like to know if you instantiated a
cloudflare.Provider
object yourself and whether you are passing the config in the code?
h
able to solve this with removing : in between