Skip to content

Commit

Permalink
website: Example of the Git+SSH protocol for bitbucket module sources
Browse files Browse the repository at this point in the history
  • Loading branch information
armchairlinguist authored and apparentlymart committed May 24, 2018
1 parent 0cc9e05 commit 170a153
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website/docs/modules/sources.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 170a153

Please sign in to comment.