numerous-solstice-19110
05/29/2023, 4:16 PMpulumi config set azure:clientid <value>
The config looks like this:
config:
azure:clientid: <the value>
then I read the config
var config = new Pulumi.Config();
var clientId = config.Require("azure:clientId");
Run pulumi up
and then it complain that "IaCazureclientId" does not exist.
and if I do like this: (add a config value with up command)
pulumi config set azure:clientid <value>
pulumi up -c SERVICE_ID=22442
it make the file look like:
config:
IaC:SERVICE_ID: 22422
azure:clientid: the value
it adds a prefix to my SERVICE_ID
and if I ask for the SERVICE_ID like this
var clientId = config.Require(SERVICE_ID");
it will find that one, but can't still find:
var clientId = config.Require("azure:clientId");
but if I remove the azure: and just do:
pulumi config set clientid <value>
it gives me:
config:
IaC:clientid: the value
in the file.
and:
var clientId = config.Require("clientId");
works.
Why can't I just use other namespaceing like azure:something and retrieve the data without it say it does not exist and try to look for "IaCazuresomething"
The IaC seams to come from pulumi.yaml name: IaC filed like a prefix.
I expect:
pulumi config set azure:clientid <value>
to give me as it is:
config:
azure:clientid: the value
but not complain about it missing and try to look for IaCazureclientId
what am I doing wrong? so lost, read the documentation and I can't get this... a bug or am I just stupid? :Dbillowy-army-68599
pulumi config set azure:clientid <value>
This isn’t correct, it needs to be azure:clientId
- note the casing
var config = new Pulumi.Config();
var clientId = config.Require("azure:clientId");
This is also incorrect, config is namespaced, so you’d need to do:
var config = new Pulumi.Config("azure");
var clientId = config.Require("clientId");
Config is namespaced. Again, note the casing.numerous-solstice-19110
05/29/2023, 4:39 PMvar config = new Pulumi.Config("aws");
var clientId = config.Require("foo");
?billowy-army-68599
var config = new Pulumi.Config("aws");
needs a valid value from the AWS providernumerous-solstice-19110
05/29/2023, 4:44 PMbillowy-army-68599