我正在尝试将RKE 提供程序安装为Rancher AWS quickstart的一部分。Terraform 文档说插件应该安装在~/.terraform.d/plugins
. RKE 文档说插件应该安装在~/terraform.d/plugins/<your_platform>
.
为了协调相互冲突的信息,我尝试将二进制文件复制到以下所有位置,但 Terraform 从未见过它们中的任何一个:
~/.terraform.d/plugins/terraform-provider-rke
~/.terraform.d/plugins/rke
~/.terraform.d/plugins/darwin_amd64/terraform-provider-rke
~/.terraform.d/plugins/darwin_amd64/rke
~/terraform.d/plugins/terraform-provider-rke
~/terraform.d/plugins/rke
~/terraform.d/plugins/darwin_amd64/terraform-provider-rke
~/terraform.d/plugins/darwin_amd64/rke
在每种情况下,当我运行时terraform init
,都会出现以下错误:
Provider "rke" not available for installation.
A provider named "rke" could not be found in the Terraform Registry.
This may result from mistyping the provider name, or the given provider may
be a third-party provider that cannot be installed automatically.
In the latter case, the plugin must be installed manually by locating and
downloading a suitable distribution package and placing the plugin's executable
file in the following directory:
terraform.d/plugins/darwin_amd64
Terraform detects necessary plugins by inspecting the configuration and state.
To view the provider versions requested by each module, run
"terraform providers".
Error: no provider exists with the given name
作为最后的手段,我可以使用terraform init -plugin-dir=<something>
. 但是随后 Terraform 看不到任何自动下载的插件,我必须手动安装所有内容。
是否缺少一些路径变量,或者我未能遵循的其他命名约定?