terraform-google-modules / cloud-foundation-training

https://registry.terraform.io/modules/terraform-google-modules/cloud-foundation-training/google
Apache License 2.0
98 stars 91 forks source link

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

Closed alanranciato closed 4 years ago

alanranciato commented 4 years ago

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

zefdelgadillo commented 4 years ago

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