Sha256: b6536761e4e4794a2323a0608416ab807621ec9bf2ed4841059eeed72aaa1517
Contents?: true
Size: 592 Bytes
Versions: 48
Compression:
Stored size: 592 Bytes
Contents
#!/bin/bash set -eu mkdir -p ~/.gcp # aws secretsmanager get-secret-value --secret-id terraspace/gcloud-credentials | jq '.SecretString | fromjson' > ~/.gcp/credentials.json echo $GOOGLE_CREDS_JSON > ~/.gcp/credentials.json # ~/.gcp/credentials.json export GOOGLE_APPLICATION_CREDENTIALS=~/.gcp/credentials.json export GOOGLE_PROJECT=$(cat $GOOGLE_APPLICATION_CREDENTIALS | jq -r '.project_id') gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS gcloud config set project $GOOGLE_PROJECT gcloud compute zones list --filter=region:us-central1 gcloud --version
Version data entries
48 entries across 48 versions & 1 rubygems