Skip to content

Instantly share code, notes, and snippets.

@mesmacosta
Created October 10, 2019 14:45
Show Gist options
  • Select an option

  • Save mesmacosta/540e7f12601c99d96fce61a6785a1409 to your computer and use it in GitHub Desktop.

Select an option

Save mesmacosta/540e7f12601c99d96fce61a6785a1409 to your computer and use it in GitHub Desktop.
gcloud auth activate-service-account --key-file sa.json
gcloud auth print-access-token
# The command returns an access token value.
# When calling a GCP API, pass the token value as a bearer token in an Authorization header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment