Merge pull request #2150 from hashicorp/d-module-ssh-source-example
docs: clarify ssh git module source syntax
This commit is contained in:
commit
3093e49ea3
|
@ -124,9 +124,15 @@ to Terraform (using the forced source type syntax documented below) to use
|
||||||
Git:
|
Git:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
// force https source
|
||||||
module "consul" {
|
module "consul" {
|
||||||
source = "git::https://hashicorp.com/module.git"
|
source = "git::https://hashicorp.com/module.git"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// force ssh source
|
||||||
|
module "ami" {
|
||||||
|
source = "git::ssh://git@github.com/owner/repo.git"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
URLs for Git repositories (of any protocol) support the following query
|
URLs for Git repositories (of any protocol) support the following query
|
||||||
|
|
Loading…
Reference in New Issue