Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
#
# author: Gary A. Stafford
# site: https://programmaticponderings.com
# license: MIT License
# purpose: Source Ansible/GCP credentials
# usage: source ./ansible_gcp_creds.sh
# Constants - CHANGE ME!
export GCP_PROJECT='ansible-gce-demo'
export GCP_AUTH_KIND='serviceaccount'
export GCP_SERVICE_ACCOUNT_FILE='path/to/your/credentials/file.json'
export GCP_SCOPES='https://www.googleapis.com/auth/compute'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment