https://pulumi.com logo
Title
n

numerous-pencil-44890

07/02/2021, 4:15 PM
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

numerous-pencil-44890

07/02/2021, 4:56 PM
Thanks! I just started using pulumi yesterday, so definitely missed this when reading the docs.