gitterraform

Terraform modules using a git branch as a source


Using Terraform modules with a git branch as a source,
I am referring to:

git::ssh://private_server:myport/kbf/my_repository.git//ecs-cluster?ref=v0.0.1

In my module source parameter, this works great and provides me with my module at tag v0.0.1 on master.

However I'd like to specify a branch, not a tag, but am not sure how to do this.


Solution

  • As mentioned in the Terraform documentation here:

    git::ssh://private_server:myport/kbf/my_repository.git//ecs-cluster?ref=myBranch