From 62ec0a3b4aa89cb7519cf784c34fc08148c4d144 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 26 Sep 2014 14:58:41 -0700 Subject: [PATCH] website: update website for subdirs --- website/source/docs/modules/sources.html.markdown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/website/source/docs/modules/sources.html.markdown b/website/source/docs/modules/sources.html.markdown index fe91eb028..9ea86b699 100644 --- a/website/source/docs/modules/sources.html.markdown +++ b/website/source/docs/modules/sources.html.markdown @@ -64,10 +64,14 @@ Subdirectories within the repository can also be referenced: ``` module "consul" { - source = "github.com/hashicorp/example/subdir" + source = "github.com/hashicorp/example//subdir" } ``` +**Note:** The double-slash is important. It is what tells Terraform that +that is the separator for a subdirectory, and not part of the repository +itself. + GitHub source URLs will require that Git is installed on your system and that you have the proper access to the repository. @@ -90,10 +94,14 @@ Subdirectories within the repository can also be referenced: ``` module "consul" { - source = "bitbucket.org/hashicorp/example/subdir" + source = "bitbucket.org/hashicorp/example//subdir" } ``` +**Note:** The double-slash is important. It is what tells Terraform that +that is the separator for a subdirectory, and not part of the repository +itself. + BitBucket URLs will require that Git or Mercurial is installed on your system, depending on the source URL.