Skip to content

Instantly share code, notes, and snippets.

@lirlia
Created February 14, 2022 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lirlia/db917e8ca3946cdff757a0763e39a3e9 to your computer and use it in GitHub Desktop.
Save lirlia/db917e8ca3946cdff757a0763e39a3e9 to your computer and use it in GitHub Desktop.
$ curl -sSL -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token" | jq -r
{
"access_token": "XXX",
"expires_in": 1967,
"token_type": "Bearer"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment