GoogleCloudPlatform / gcs-oauth2-boto-plugin

Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage in the Boto library.
Apache License 2.0
21 stars 38 forks source link

GCE credentials requested outside a GCE instance #57

Open barucoh opened 2 years ago

barucoh commented 2 years ago

When trying to access GCS from a GCE instance I have create the following /etc/boto.cfg:

[GoogleCompute]
service_account=default

But when I want to use the same configuration from a non-GCE instance, it will give the error message: GCE credentials requested outside a GCE instance

I was expecting gsutil to try to authenticate as an anonymous caller if it fails with default service account credentials.

Am I missing something here?