Terraform Init无法验证校验和



使用Terraform V0.12.5在Windows 10上的Corporate Proxy

后面

当我跑步时 Terraform Init然后我得到

Initializing the backend...
Initializing provider plugins...
- Checking for available provider plugins...
Error verifying checksum for provider "helm"
The checksum for provider distribution from the Terraform Registry
did not match the source. This may mean that the distributed files
were changed after this version was released to the Registry.
...
Error: unable to verify checksum

对于我的队友来说,它可以正常工作(相同的Terraform版本,但在Linux环境中使用VPN。

我将代理设置为Env variabes(http_proxy和https_proxy(。

如果我不设置它们,我有

Error: error validating provider credentials: error calling sts:GetCallerIdentity: RequestError: send request failed
caused by: Post https://sts.amazonaws.com/: dial tcp --.--.--.--:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

而不是。

我认为这是一个网络问题,但上面的错误根本不是详细的。

terraform init -reconfigure应该起作用。它将重新下载所有连接器和重置不良后端名称。

最新更新