-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend/remote-state/gcs: Simplify initialization of the GCS client.
This also implements the (already documented) behavior of checking the GOOGLE_CREDENTIALS environment variable.
- Loading branch information
Showing
1 changed file
with
12 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi @jbardin, this seems to conflict with the use of GOOGLE_CREDENTIALS in the google provider
https://github.com/terraform-providers/terraform-provider-google/blob/10f764aa9b68349684278b8a19496b8eb4e4a7c9/google/provider.go#L19 which expects this variable (or config property) to contain the content rather than a path to a file.
I've just had to downgrade back to 0.10.x as it seems that this initialization code runs even on
apply
orplan
so I can't separate the use of the environment variable.I haven't had time to come up with a simple test case to raise an issue but I intend to do so; if you have any thoughts meanwhile that'd be great.