Hi, does anyone know how to set a provider’s confi...
# python
n
Hi, does anyone know how to set a provider’s config programmatically? I have a stack that creates a GKE cluster which uses the
gcp:project
and other configs, but in my application (k8s namespace) stack I just want to inherit the GCP project, region, zone from a stack reference so that it can’t be screwed up when deploying between multiple clusters. The docs mention that you can create the provider with those values: “passed to the constructor of
new gcp.Provider
to construct a specific instance of the GCP provider”. But I don’t see any examples doing that. [https://www.pulumi.com/docs/intro/cloud-providers/gcp/#configuration]
n
Thanks! I just started using pulumi yesterday, so definitely missed this when reading the docs.