使用最新的V0.11.11,并且正在尝试使用具有标签的GitHub中托管的模块,例如v1.1.0。我尝试了一些组合,而doco却不清楚github(或者我错过了:)。我尝试过的例子:
source = "github.com/xxx/module_repo?ref=v1.1.0"
source = "git::https://github.com/xxx/module_repo.git?ref=v1.1.0"
然后我做一个:
terraform get -update && terraform init
并在下面获取错误:
Updating source "git::https://github.com/xiatechs/sdv-terraform-aws-lambda.git?ref=v1.1.0"
Error loading modules: error downloading 'https://github.com/xxx/module_repo.git?ref=v1.1.0': /usr/local/bin/git exited with 1: error: pathspec 'v1.1.0' did not match any file(s) known to git
两个示例都会失败,并带有相同的错误消息。
ive尝试删除.trraform,因此它的新鲜且仍然是问题。
任何想法都非常感谢!:)
谢谢!
add//github.com之后source =" git :: https://github.com//xxx/module_repo.git?ref = v1.1.0"
这对我解决了相同的问题。