From 5f5089f77f30835a588162887a86b2a8bc402110 Mon Sep 17 00:00:00 2001 From: Justin Pye Date: Fri, 23 Jun 2017 11:37:37 +1000 Subject: [PATCH] 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. --- website/docs/modules/sources.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/modules/sources.html.markdown b/website/docs/modules/sources.html.markdown index 240dd21a4..08ebd0a42 100644 --- a/website/docs/modules/sources.html.markdown +++ b/website/docs/modules/sources.html.markdown @@ -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 } ```