在企业代理后面的Windows 10上使用Terraform v0.12.5
当我跑步时 地形初始化 然后我得到了
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。没有代理地狱)。
我将代理设置为环境变量(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.
相反。
我认为这是一个网络问题,但是上面的错误根本不是冗长的。
答案 0 :(得分:0)
terraform init -reconfigure
应该可以工作。它将重新下载所有连接器并重置错误的后端名称。