https://pulumi.com logo
Title
g

gorgeous-car-25108

07/07/2022, 6:43 PM
Hi Pulumi Team, where can I find the list of default, and acceptable values for pulumi.yaml and pulumi.<stack>.yaml?
w

witty-candle-66007

07/07/2022, 7:04 PM
g

gorgeous-car-25108

07/08/2022, 4:06 AM
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

witty-candle-66007

07/08/2022, 1:08 PM
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

gorgeous-car-25108

07/08/2022, 1:17 PM
Yea i need the predefined config values for gcp provider
Could you please share it
w

witty-candle-66007

07/08/2022, 5:22 PM
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

gentle-advantage-80069

07/09/2022, 2:22 PM
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

witty-candle-66007

07/11/2022, 1:09 PM
orgs as such only exist when using the Pulumi service for your backend. https://www.pulumi.com/docs/intro/pulumi-service/organizations/