Skip to content

Instantly share code, notes, and snippets.

@dimisjim
Created May 20, 2019 07:53
Show Gist options
  • Save dimisjim/73c2f802dd0a9a63f23fabb51b96c359 to your computer and use it in GitHub Desktop.
Save dimisjim/73c2f802dd0a9a63f23fabb51b96c359 to your computer and use it in GitHub Desktop.
Terraform module not getting cloned in github repo
Using Docker executor with image hashicorp/terraform:light ...
Pulling docker image hashicorp/terraform:light ...
Using docker image sha256:7cd543b4280182930cfeeb9af69dddc5ac6af3de86987d9d9bca86b3cc4c48dc for hashicorp/terraform:light ...
Running on runner-1f11cafd-project-183-concurrent-0 via runner-1f11cafd-gitlab-worker-1558338353-22ffc251...
Fetching changes...
Removing starcoders-ci/.terraform/
Removing terraform-modules/
HEAD is now at 1d16689 ci yaml
From https://git.starcoders.com/devops/terraform
1d16689..267a568 master -> origin/master
Checking out 267a568f as master...
Skipping Git submodules setup
$ git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@git.starcoders.com/devops/terraform-modules.git".insteadOf [email protected]:devops/terraform-modules.git
$ git clone [email protected]:devops/terraform-modules.git
Cloning into 'terraform-modules'...
$ ls -la terraform-modules
total 20
drwxr-xr-x 4 root root 4096 May 20 07:50 .
drwxrwxrwx 14 root root 4096 May 20 07:50 ..
drwxr-xr-x 8 root root 4096 May 20 07:50 .git
-rw-r--r-- 1 root root 236 May 20 07:50 README.md
drwxr-xr-x 2 root root 4096 May 20 07:50 backend-s3
$ terraform --version
Terraform v0.11.13
Your version of Terraform is out of date! The latest version
is 0.11.14. You can update by downloading from www.terraform.io/downloads.html
$ cd starcoders-ci
$ terraform init
Initializing modules...
- module.backend-s3
Getting source "git::ssh://[email protected]/devops/terraform-modules.git//backend-s3/"
Error downloading modules: Error loading modules: error downloading 'ssh://[email protected]/devops/terraform-modules.git': /usr/bin/git exited with 128: Cloning into '.terraform/modules/58934acb5a63e622da9c7129c2092c72'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ERROR: Job failed: exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment