https://pulumi.com logo
f

full-dress-10026

09/28/2018, 2:53 AM
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

white-balloon-205

09/28/2018, 3:53 AM
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

full-dress-10026

09/28/2018, 3:56 AM
Oh I see - that works. It may be useful to include namespace in the docs for the
name
parameter passed to config.