-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Correct default GCP env var for credential path in Guide #5021
Conversation
Correct default GCP env var for credential path
@@ -161,7 +161,7 @@ You supply the key to Terraform using the environment variable | |||
`GOOGLE_CLOUD_KEYFILE_JSON`, setting the value to the location of the file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please replace GOOGLE_CLOUD_KEYFILE_JSON
with GOOGLE_APPLICATION_CREDENTIALS
on this line as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I think I got ahead of myself here. I'm not sure this needs to be changed. To clarify how to set credentials you can read more here https://www.terraform.io/docs/providers/google/guides/provider_reference.html#credentials-1. GOOGLE_CLOUD_KEYFILE_JSON
is one of the environment variables to use for the recommended Terraform-specific service accounts. GOOGLE_APPLICATION_CREDENTIALS
is used as a fallback if a Terraform-specific service account key file is not provided. These credentials are your Google app default credentials.
@megan07 - Agree, but most of the places |
Hi @pradeepbhadani, thank you for pointing that out! I think the consistency that we want to keep would be with the recommended practice. If |
The problem was for me, that I tried to use Update: |
Hi @draconteus ! Sorry about this, I accidentally merged this instead of another PR I was looking at (too many tabs open). I will have to test this further, as I have |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
No description provided.