noob question - I am trying to work with pulumi-cl...
# getting-started
noob question • I am trying to work with pulumi-cloudflare provider • I have the following name in my
• I created a stack called
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

  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 ?
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.
@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
object yourself and whether you are passing the config in the code?
able to solve this with removing : in between