This message was deleted.
s
This message was deleted.
f
gcp_config = pulumi.Config('gcp')
b
I think you can try
gcp.config.project
There is a config package in the GCP python library - https://github.com/pulumi/pulumi-gcp/tree/master/sdk/python/pulumi_gcp/config
b
@fast-dinner-32080 :
TypeError: 'Config' object is not callable
I've looked at the class code, that is not the path @broad-dog-22463 Do you mind to be more specific? I tried:
config.get('gcp.project')
and
config.get('gcp.config.project')
but I got
None
on both
f
Like for the rancher config I have
Copy code
# load rancher config
rancher_config = pulumi.Config("rancher2")
which pulls the rancher2: scoped configs and I can get them by calling something like this.
Copy code
rancher_config.require("api_url")
So I would expect it to work similar for other configs.
b
ohhh yes! Thanks! This works
pulumi.Config('gcp').get('project')
Thanks all!
🎉 1