-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website: Example of the Git+SSH protocol for bitbucket module sources
- Loading branch information
1 parent
0cc9e05
commit 170a153
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,14 +172,20 @@ 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 | ||
module "consul" { | ||
source = "git::https://bitbucket.org/foocompany/module_name.git?ref=hotfix" | ||
} | ||
``` | ||
|
||
```hcl | ||
module "consul" { | ||
source = "git::ssh://[email protected]/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. | ||
|
||
## Generic Git Repository | ||
|