infra_snippets/google_cloud_auth/fetch_token_from_metadata_server.bash

3 lines
155 B
Bash
Raw Normal View History

2025-02-01 14:34:02 -05:00
curl "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=AUDIENCE" \
-H "Metadata-Flavor: Google"