website: Example of the Git+SSH protocol for bitbucket module sources

This commit is contained in:
Alexis Grant 2018-05-24 15:32:19 -07:00 committed by Martin Atkins
parent 0cc9e050ec
commit 170a1530d1
1 changed files with 7 additions and 1 deletions

View File

@ -172,7 +172,7 @@ module "consul" {
} }
``` ```
You can also specify branches and version withs the ?ref query You can also specify branches and version with the `?ref` query, and use HTTPS or SSH:
```hcl ```hcl
module "consul" { module "consul" {
@ -180,6 +180,12 @@ module "consul" {
} }
``` ```
```hcl
module "consul" {
source = "git::ssh://git@bitbucket.org/foocompany/module_name.git"
}
```
You will need to run a `terraform get -update=true` if you want to pull the latest versions. This can be handy when you are rapidly iterating on a module in development. You will need to run a `terraform get -update=true` if you want to pull the latest versions. This can be handy when you are rapidly iterating on a module in development.
## Generic Git Repository ## Generic Git Repository