AzBuilder / terraform-spring-boot

Spring Boot Starter for Terraform
MIT License
2 stars 6 forks source link

Support to handle SSH key location #35

Closed alfespa17 closed 1 year ago

alfespa17 commented 1 year ago

Sometimes when using Terraform modules from a private repository, we need to specify the SSH key location

module "test" {
  source = "git@bitbucket.org:alfespa17/private-module.git"
}

The following command can be used to set the SSH key location when executing terraform

GIT_SSH_COMMAND="ssh -i /home/user/.sshBkp/id_rsa -o StrictHostKeyChecking=accept-new" terraform init

Reference:

https://github.com/AzBuilder/terrakube/issues/394