Checkout this video
Viewer
role to begin with..json
) for auth. (Please do not share this key file publicly. Keep it secure!).json
key file to google_credentials.json
export GOOGLE_APPLICATION_CREDENTIALS="<path/to/your/google_credentials.json>"
# Refresh token/session, and verify authentication
gcloud auth application-default login
GOOGLE_APPLICATION_CREDENTIALS
environment variable is set.
export GOOGLE_APPLICATION_CREDENTIALS="<path/to/your/service-account-authkeys>.json"