If I require `cloud-aws:externalVpcId` in my code ...
# general
f
If I require
cloud-aws:externalVpcId
in my code using `Config`:
Copy code
let config = new pulumi.Config();

config.require("cloud-aws:externalVpcId");
and run
pulumi preview
, I get a message saying
Missing required configuration variable 'services-infra:cloud-aws:externalVpcId'
. Why is the configuration prefixed with my project's name when I already specified a namespace?
w
You have to specify the namespace as an argument to
pulumi.Config
. I’m actually surprised this doesn’t produce an error pointing you in that direction - we should make sure it does.
f
Oh I see - that works. It may be useful to include namespace in the docs for the
name
parameter passed to config.