Skip to content

Instantly share code, notes, and snippets.

@standardizer
Last active October 31, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save standardizer/09fda4ca1e246e4e43868e84ce7a6c30 to your computer and use it in GitHub Desktop.
Save standardizer/09fda4ca1e246e4e43868e84ce7a6c30 to your computer and use it in GitHub Desktop.
terraform executing ssh (should be plink.exe)
C:\Users\user\Git\terraform-aws-plans> terraform init
2018/10/31 17:24:21 [INFO] Terraform version: 0.11.10 17850e9a55d33c43d7c31fd6ac122ba97a51d899
2018/10/31 17:24:21 [INFO] Go runtime version: go1.11.1
2018/10/31 17:24:21 [INFO] CLI args: []string{"C:\\Users\\user\\Downloads\\terraform_0.11.10_windows_amd64\\terraform.exe", "init"}
2018/10/31 17:24:21 [DEBUG] Attempting to open CLI config file: C:\Users\user\AppData\Roaming\terraform.rc
2018/10/31 17:24:21 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/10/31 17:24:21 [INFO] CLI command args: []string{"init"}
2018/10/31 17:24:21 [DEBUG] command: loading backend config file: C:\Users\user\Work\Git\terraform-aws-plans
Initializing modules...
2018/10/31 17:24:22 [TRACE] module source: "git::ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git?ref=v0.0.5"
2018/10/31 17:24:22 [TRACE] detected module source "git::ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git?ref=v0.0.5"
2018/10/31 17:24:22 [DEBUG] fetching module from git::ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git?ref=v0.0.5
- module.rds_mymodule
2018/10/31 17:24:22 [DEBUG] fetching "git::ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git?ref=v0.0.5" with key "1.rds_mymodule;git::ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git?ref=v0.0.5"
Getting source "git::ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git?ref=v0.0.5"
2018/10/31 17:24:22 [DEBUG] plugin: waiting for all plugin processes to complete...
Error downloading modules: Error loading modules: error downloading 'ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git?ref=v0.0.5': C:\Program Files\Git\cmd\git.exe exited with 128: 17:24:22.091995 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
17:24:22.092996 git.c:415 trace: built-in: git clone ssh://git@gitlab.my-site.org/devops/terraform-aws/modules/mymodule.git '.terraform\modules\766715373638675165716641567618651541'
17:24:22.154992 run-command.c:637 trace: run_command: unset GIT_DIR; ssh git@gitlab.my-site.org 'git-upload-pack '\''/devops/terraform-aws/modules/mymodule.git'\'''
Cloning into '.terraform\modules\766715373638675165716641567618651541'...
git@gitlab.my-site.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment