Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active July 6, 2019 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save garystafford/8ec01497c324aa7871241bb954cff3ca to your computer and use it in GitHub Desktop.
Save garystafford/8ec01497c324aa7871241bb954cff3ca to your computer and use it in GitHub Desktop.
#!/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