terraform-google-modules/cloud-foundation-training

Error: storage.NewClient() failed: dialing: google: could not find default credentials.

alanranciato opened this issue · 1 comments

Using pixelbook terminal
Using personal project (not training)

Happening in all modules:

exported credential per command
export GOOGLE_CLOUD_KEYFILE_JSON="$(pwd)/cft-training.json"

Received error Error: storage.NewClient() failed: dialing: google: could not find default credentials. when running terraform init

Added
credentials = "../cft-training.json" to backend.tf to fix

Similar to #15. Including steps to run gcloud auth application-default login