website: Example of the Git+SSH protocol for bitbucket module sources
This commit is contained in:
parent
0cc9e050ec
commit
170a1530d1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue