使用 git 分支作为源的 Terraform 模块 [英] Terraform modules using a git branch as a source
本文介绍了使用 git 分支作为源的 Terraform 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用带有 git 分支的 Terraform 模块作为源,
我指的是:
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
在我的模块源参数中,这很好用,并在 master 上的标签 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.
推荐答案
正如 Terraform 文档中提到的那样 这里:
As mentioned in the Terraform documentation here:
git::ssh://private_server:myport/kbf/my_repository.git//ecs-cluster?ref=myBranch
这篇关于使用 git 分支作为源的 Terraform 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文