Sha256: d000e018782f3f2bde9b2488e0ed1a399d3f5175d9aa2e2deef490bb58dc9fa7

Contents?: true

Size: 540 Bytes

Versions: 56

Compression:

Stored size: 540 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

# ~/.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

56 entries across 56 versions & 1 rubygems

Version Path
terraspace-0.6.23 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.22 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.21 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.20 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.19 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.18 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.17 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.16 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.15 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.13 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.12 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.11 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.10 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.9 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.8 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.7 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.6 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.5 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.4 .cody/google/bin/gcloud/configure.sh
terraspace-0.6.3 .cody/google/bin/gcloud/configure.sh