The "Private Bitbucket Repos" example did not work for me. I had to specify the "ref="as a URL param for this to work. Otherwise Terraform produced the following error:

Error loading Terraform: Error downloading modules: error downloading 'ssh://git@bitbucket.org/acme/foo.git?bar': /usr/bin/git exited with 128: Cloning into '.terraform/modules/yadayada'...
invalid command syntax.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
This commit is contained in:
Justin Pye 2017-06-23 11:37:37 +10:00
parent c4857bdbaf
commit 5f5089f77f
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ You can also specify branches and version withs the ?ref query
```hcl
module "consul" {
source = "git::https://bitbucket.org/foocompany/module_name.git?hotfix
source = "git::https://bitbucket.org/foocompany/module_name.git?ref=hotfix
}
```