-
Notifications
You must be signed in to change notification settings - Fork 131
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
Auth and other environment variables #154
Comments
If the variable is supplied to the editor at startup, it should propagate through the LS. the LS is not invoked in an interactive shell, so it would not load any env vars loaded via that method. I'm going to move this to the LS though, we have an issue there to avoid the need to auth to backends for schema (its not necessary in the protocol, just a limitation of how the schema command was implemented in the Terraform CLI). |
You can alternatively execute Terraform via a wrapper script, here are instructions how to do that as a workaround: https://github.com/hashicorp/vscode-terraform/wiki/Manually-Setting-the-Terraform-Executable-Path |
I'm going to consolidate this with #142, they seem to be the same issue (with different backends) so would most likely be solved by the same fix. |
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. |
I use
GOOGLE_APPLICATION_CREDENTIALS
env variable to retrive all information of backend gcs, how to put this variable inside the server terraform-ls.When it run, show error
The text was updated successfully, but these errors were encountered: