elegant-oyster-42272
05/05/2024, 7:02 PMdara
and created a pulumiConfig
called db.masterUsername
but when I try to add the following to my Pulumi.dara.yml
and then in my pulumi program: const masterUsername = config.requireSecret('db.masterUsername');
it is throwing an error that the config isn't set.
Pulumi.dara.yml
imports:
- dara
I have also tried with:
environment:
imports:
- dara
And:
environment:
- dara
elegant-oyster-42272
05/05/2024, 7:06 PMDiagnostics:
pulumi:pulumi:Stack (infrastructure-dara):
error: Missing required configuration variable 'infrastructure:db.masterUsername'
please set a value using the command `pulumi config set --secret infrastructure:db.masterUsername <value>`
elegant-oyster-42272
05/05/2024, 7:35 PM:
or .
in a pulumiConfig name. I changed it to dbMasterUsername
and it works as expected.