【发布时间】:2018-03-18 11:19:20
【问题描述】:
Hashicorp Consul repository 包含一个 Terraform 模块,用于在 AWS 中启动 Consul 集群。该模块引用了在shared/scripts目录下的模块父目录中找到的几个文件https://github.com/hashicorp/consul/tree/master/terraform
但是,当我在我的一个 .tf 文件中引用该模块并运行 terraform get 以下载该模块时,shared/scripts/ 下所需的文件不包含在下载的模块文件中,从而导致出现上述错误here
我在 Terraform 中的 module 部分如下所示:
module "consul" {
source = "github.com/hashicorp/consul/terraform/aws"
key_name = "example_key"
key_path = "/path/to/example_key"
region = "us-east-1"
servers = "3"
platform = "centos7"
}
是否有 terraform get 拉入模块目录之外的文件?
谢谢
【问题讨论】:
标签: terraform