Hi Pulumi Team, where can I find the list of defau...
# google-cloud
g
Hi Pulumi Team, where can I find the list of default, and acceptable values for pulumi.yaml and pulumi.<stack>.yaml?
w
g
Ok so for pulumi.xxx.yaml , only the stackname is important as the namespace, rest all config values are user defined? I was getting errors on few hence asked if there were any predefined acceptable values
w
Correct - for the most part. The stack config (i.e. Pulumi.xxx.yaml) has a default namespace which is the project name. So if you do
pulumi config set goo foo
you’ll see it added to the config file as
PROJECTNAME:goo
And accessing it in code is simply
config = pulumi.Config()
(python) You can create your own namespace specific config as well with
pulumi config set mynamespace:goo foo
and then access that in code with
config = pulumi.Config("mynamespace")
Also, the providers’ configs do have their own predefined namespace such as for aws, or azure-native providers to set region or location, etc. (e.g.
pulumi config set aws:region us-east-1
)
g
Yea i need the predefined config values for gcp provider
Could you please share it
w
GCP: https://www.pulumi.com/registry/packages/gcp/installation-configuration/ Each provider’s doc pages has an “Install” tab that outlines the settings used by the provider
g
ok thanks alot could you also help me with this ? @witty-candle-66007
am getting error, when trying to set org
its taking my laptop name
am using gcp bucket as my backend state
w
orgs as such only exist when using the Pulumi service for your backend. https://www.pulumi.com/docs/intro/pulumi-service/organizations/