Hey folks. I setup an environment called `dara` an...
# esc
e
Hey folks. I setup an environment called
dara
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
Copy code
imports:
  - dara
I have also tried with:
Copy code
environment:
  imports:
    - dara
And:
Copy code
environment:
  - dara
Here's the error:
Copy code
Diagnostics:
  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>`
Ah, I think I found the issue. I shouldn't have
:
or
.
in a pulumiConfig name. I changed it to
dbMasterUsername
and it works as expected.