Closed alfespa17 closed 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
Sometimes when using Terraform modules from a private repository, we need to specify the SSH key location
The following command can be used to set the SSH key location when executing terraform
Reference:
https://github.com/AzBuilder/terrakube/issues/394