【发布时间】:2021-02-21 18:59:16
【问题描述】:
我有一个包含几个单独配置的存储库,这些配置共享一些模块,并使用看起来像 ../../modules/rabbitmq 的相对路径引用这些模块。目录设置如下:
tf/
configs/
thing-1/
thing-2/
modules/
rabbitmq/
cluster/
...
使用远程后端设置配置以使用 TF Cloud 进行运行和状态:
terraform {
backend "remote" {
hostname = "app.terraform.io"
organization = "my-org"
workspaces {
prefix = "config-1-"
}
}
}
运行terraform init 工作正常。当我尝试在本地运行 terrform plan 时,它给了我一个错误提示:
Initializing modules...
- rabbitmq in
Error: Unreadable module directory
Unable to evaluate directory symlink: lstat ../../modules: no such file or
directory
...好像模块目录没有上传到 TF Cloud 或其他东西。什么给了?
【问题讨论】: