https://pulumi.com logo
#general
Title
# general
f

faint-motherboard-95438

12/05/2018, 6:51 PM
How can one access properties of a provider ? In my case I’d like to access the
credentials
property of the
gcp
package
Provider
I pass down my components.
w

white-balloon-205

12/05/2018, 7:37 PM
Currently these are not exposed into the program directly. This is actually at it's core a limitation of the Terraform Providers that Pulumi depends on - they do not store the credentials they use internally into the provider instance. You can get an
accessToken
via the following - but not sure that is sufficient for what you need here?
Copy code
export let clientConfig = gcp.organizations.getClientConfig();
f

faint-motherboard-95438

12/05/2018, 9:19 PM
@white-balloon-205 thanks for your help, as always. That’s what I thought. I will try what you are suggesting and see if that’s enough (trying to get a json key from the service account to pass to cert-manager). I was already working on an alternative way but I didn’t want to do something twice if I was able to get it in the provider.