pulumi / pulumi-gcp

A Google Cloud Platform (GCP) Pulumi resource package, providing multi-language access to GCP
Apache License 2.0
183 stars 53 forks source link

Link to help article #816

Open prasannapad opened 5 years ago

prasannapad commented 5 years ago

As a first timer with GCP on Pulumi, I found Pulumi's artcile on GCP Setup https://www.pulumi.com/docs/intro/cloud-providers/gcp/setup/ more precise and helpful than https://developers.google.com/accounts/docs/application-default-credentials when I ran into this error

Diagnostics:
  gcp:storage:Bucket (my-bucket):
    error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

Might want to consider adding a reference to your article? (to be consistent with Pulumi AWS setup for example)...

pgavlin commented 5 years ago

@stack72 I suspect that message is coming from the TF provider. Can you take a look?

stack72 commented 5 years ago

@pgavlin / @lukehoban for this, we can follow the same flow as pulumi-aws, this means we would have a func that effectively walks the config tree checking for the correct credentials validates they are correct by using the Google OAuth library

Thoughts?