问题描述
我在尝试运行的位置遇到问题:TerraForm init在我的项目的模块文件夹中,并且我收到以下错误。当我运行terraform init时,不是在模块中,而是在主文件夹中,我得到的一切都是正确的:TerraForm已成功初始化! 我正在使用带有Terraform 0.14.6版的Windows 10我在特定目录中有一个文件。为什么我收到此错误?
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/aws versions matching "~> 3.24.1"...
- Installing hashicorp/aws v3.24.1...
Error: Failed to install provider
Error while installing hashicorp/aws v3.24.1: open
.terraformprovidersegistry.terraform.iohashicorpaws3.24.1windows_amd64 erraform-provider-aws_v3.24.1_x5.exe:
The system cannot find the path specified.
推荐答案
我将所有文件移动到c:erraform文件夹,它工作正常。我不知道为什么,因为我在Windows中打开了长路径,整个路径是116个符号,不超过255个。