Hi guys. When you set `pulumi config set gcp:proje...
# python
b
Hi guys. When you set
pulumi config set gcp:project <your-project-here>
, how can I then get the value of it?
Copy code
config.get("gcp:project")
doesn't work, even though it is set:
Copy code
config:
  gcp:project: some-project-name
Copy code
from pulumi_gcp.config import project, zone

cluster_name = project + '-gke-cluster-1'
f
See https://www.pulumi.com/docs/intro/concepts/config/. Make sure you create the config object first:
config = pulumi.Config()
. Also here’s a link to the API reference: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#configuration-and-metadata%C2%B6
b
thanks @future-barista-68134. I posted a solution to my own question