From 91f309528ef837cb7c8946c60fad982e4246dbc8 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Mon, 13 Feb 2017 13:40:14 -0500 Subject: [PATCH] Mention how to use git modules over SSH (#11467) --- website/source/docs/modules/sources.html.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/source/docs/modules/sources.html.markdown b/website/source/docs/modules/sources.html.markdown index 98f3d760bd..2f39373787 100644 --- a/website/source/docs/modules/sources.html.markdown +++ b/website/source/docs/modules/sources.html.markdown @@ -57,6 +57,14 @@ module "consul" { } ``` +These will fetch the modules using HTTPS. If you want to use SSH instead: + +``` +module "consul" { + source = "git@github.com:hashicorp/example.git//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 require that Git is installed on your system and that you have access to the repository.