You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2018/01/08 17:13:10 [DEBUG] plugin: waiting for all plugin processes to complete...
Terraform backend setup successful. Proceeding...
2018/01/08 17:13:10 [INFO] Terraform version: 0.11.1 a42fdb0+CHANGES
2018/01/08 17:13:10 [INFO] Go runtime version: go1.9
2018/01/08 17:13:10 [INFO] CLI args: []string{"/usr/bin/terraform", "plan"}
2018/01/08 17:13:10 [DEBUG] Attempting to open CLI config file: /home/rwhite/.terraformrc
2018/01/08 17:13:10 Loading CLI configuration from /home/rwhite/.terraformrc
2018/01/08 17:13:10 [INFO] CLI command args: []string{"plan"}
2018/01/08 17:13:10 [TRACE] Preserving existing state lineage "dc043295-5f63-4d24-9848-4ec82535e554"
2018/01/08 17:13:10 [TRACE] Preserving existing state lineage "dc043295-5f63-4d24-9848-4ec82535e554"
2018/01/08 17:13:10 [DEBUG] plugin: waiting for all plugin processes to complete...
Failed to load backend:
Error configuring the backend "gcs": storage.NewClient() failed: dialing: cannot read credentials file: open {
<our entire service account key contents, which we're setting GOOGLE_CREDENTIALS ENVVAR to the output of>
}: file name too long
Expected Behavior
Terraform should have opened our Google Cloud Storage-based remote state using the service account JSON contents set in the GOOGLE_CREDENTIALS ENVVAR, without issue.
Actual Behavior
It complains that parsing the GOOGLE_CREDENTIALS ENVVAR is reading a file too long. This worked fine up until 0.10.7, and only broke when trying to upgrade to 0.11.1
Steps to Reproduce
Install Terraform 0.10.7 or earlier.
Create a service account in Google IAM that has broad access to your GCP project.
Create a basic Terraform config of GCP resources, including using a GCS-based remote state.
Watch terraform run fine after properly running init to create the storage bucket in GCS.
Upgrade Terraform to 0.11.1, and change nothing in the config.
Run terraform plan or apply, and watch it bail out with the above error.
Additional Context
We do run Terraform in a wrapper script, which basically exists to pre-set all the necessary per-ENV ENVVARS and decrypts our GPG-encrypted Terraform variables.tf file which contains sensitive passwords and other info. However, this has all worked fine for over a year and only stops working with 0.11.1. I can't find anything in the 0.11.x release notes that would point in any direction why this is suddenly broken.
The text was updated successfully, but these errors were encountered:
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.
ghost
locked and limited conversation to collaborators
Apr 5, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
The HCL around the backend:
The init command we're using:
Debug Output
2018/01/08 17:13:10 [DEBUG] plugin: waiting for all plugin processes to complete...
Terraform backend setup successful. Proceeding...
2018/01/08 17:13:10 [INFO] Terraform version: 0.11.1 a42fdb0+CHANGES
2018/01/08 17:13:10 [INFO] Go runtime version: go1.9
2018/01/08 17:13:10 [INFO] CLI args: []string{"/usr/bin/terraform", "plan"}
2018/01/08 17:13:10 [DEBUG] Attempting to open CLI config file: /home/rwhite/.terraformrc
2018/01/08 17:13:10 Loading CLI configuration from /home/rwhite/.terraformrc
2018/01/08 17:13:10 [INFO] CLI command args: []string{"plan"}
2018/01/08 17:13:10 [TRACE] Preserving existing state lineage "dc043295-5f63-4d24-9848-4ec82535e554"
2018/01/08 17:13:10 [TRACE] Preserving existing state lineage "dc043295-5f63-4d24-9848-4ec82535e554"
2018/01/08 17:13:10 [DEBUG] plugin: waiting for all plugin processes to complete...
Failed to load backend:
Expected Behavior
Terraform should have opened our Google Cloud Storage-based remote state using the service account JSON contents set in the GOOGLE_CREDENTIALS ENVVAR, without issue.
Actual Behavior
It complains that parsing the GOOGLE_CREDENTIALS ENVVAR is reading a file too long.
This worked fine up until 0.10.7, and only broke when trying to upgrade to 0.11.1
Steps to Reproduce
Additional Context
We do run Terraform in a wrapper script, which basically exists to pre-set all the necessary per-ENV ENVVARS and decrypts our GPG-encrypted Terraform variables.tf file which contains sensitive passwords and other info. However, this has all worked fine for over a year and only stops working with 0.11.1. I can't find anything in the 0.11.x release notes that would point in any direction why this is suddenly broken.
The text was updated successfully, but these errors were encountered: