-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google cloud provider environment variables not read as file as expected #8493
Comments
Hi @pvanderlinden, Example: export GOOGLE_CREDENTIALS=`cat credentials.json` That being said, in my experience, the easiest way to handle these credentials if you already have the gcloud SDK installed is to login with Hopefully this answers your question! |
Thanks @cblecker |
Thanks, I have to say the variable names are confusing though. |
We thought this expected a file as the documentation [appears to suggest this](https://www.terraform.io/docs/providers/google/index.html). Unfortunately this isn't the case, as per: hashicorp/terraform#8493
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
If you set any of the environment variables as specified in the Google cloud provider documentation, the file is not actually read, but tries to parse the filename as JSON. (GOOGLE_CREDENTIALS, GOOGLE_CLOUD_KEYFILE_JSON, GCLOUD_KEYFILE_JSON, see https://www.terraform.io/docs/providers/google/index.html#credentials)
Example:
Terraform version: 0.7.2
The text was updated successfully, but these errors were encountered: