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

Version Path
terraspace-2.2.17 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.16 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.15 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.14 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.13 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.12 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.11 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.10 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.9 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.8 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.7 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.6 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.5 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.4 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.3 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.2 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.1 .cody/google/bin/gcloud/configure.sh
terraspace-2.2.0 .cody/google/bin/gcloud/configure.sh
terraspace-2.1.7 .cody/google/bin/gcloud/configure.sh
terraspace-2.1.6 .cody/google/bin/gcloud/configure.sh