I just got my sandbox TFE instance up and running and am now testing out its capabilities.
I am trying a very basic implementation, setting up a workspace, integrating with a git repo, and running a plan against a script.
This script runs fine if I execute through the terraform cli.
In TFE, I have tried this using version 11.14 and 12.2.
The specific line that is throwing the error: source = “git::https://github.com/corelogic/terraform-gcp-compute?ref=v4.0.2”
Error: fatal: could not read Username for ‘https://github.com’: No such device or address
I will paste the entire log below…
This appears to be an auth issue with Git, but it is not making sense to me.
As I stated before, this runs fine on my local using the CLI. I have the same level of access to the primary repo and the module repo. TFE can access and download the initial Git repo. TFE fails with the error when pulling the module repo.
I have tried to play with the workspace settings with no change.
Configuring remote state backend…
Initializing Terraform configuration…
Setup failed: Failed terraform init (exit 1):
2019/08/29 22:39:57 [DEBUG] Using modified User-Agent: Terraform/0.11.14 PTFE/b5916fe
Getting source “…/…/…/…/modules/non_app/other/impersonate”
Getting source “…/…/…/…/modules/app/compute/activedirectory”
Getting source “…/…/…/…/modules/non_app/compute/managed_instance_group”
Getting source “git::https://github.com/corelogic/terraform-gcp-compute?ref=v4.0.2”
e[31mError downloading modules: Error loading modules: error downloading ‘https://github.com/corelogic/terraform-gcp-compute?ref=v4.0.2’: /usr/bin/git exited with 128: Cloning into ‘.terraform/modules/8aff81c006c9580a42bbd49d60814361’…
fatal: could not read Username for ‘https://github.com’: No such device or address