Google Helpers

List of Google helpers:

Notes

Authentication

Most of the Google helpers use the SDK to call the Google Cloud API. As such, it needs to be authenticated. You can do this by setting the GOOGLE_APPLICATION_CREDENTIALS environment variable point to the path with a service account credentials file. IE:

.bash_profile

export GOOGLE_APPLICATION_CREDENTIALS=~/.gcp/service-account.json

If you would like to use a user IAM credentials instead of a service account. You can also run use application-default login. Example:

gcloud auth application-default login

This generates an Application Default Credentials at .config/gcloud/application_default_credentials.json. Note, make sure that GOOGLE_APPLICATION_CREDENTIALS is not set or else the application_default_credentials.json will not be used. Also, the google sdk prints a warning to use a service account instead. You can suppress that warning with this:

.bash_profile

export GOOGLE_AUTH_SUPPRESS_CREDENTIALS_WARNINGS=1

More tools: