Proxy 密码保护代理命令背后的Terraform
我已在命令中设置代理,如下所示Proxy 密码保护代理命令背后的Terraform,proxy,terraform,Proxy,Terraform,我已在命令中设置代理,如下所示 set HTTP_PROXY=http://user:passowrd@host.com:8080 set HTTPS_PROXY=https://user:passowrd@host.com:8080 set HTTP_USER=myuser set HTTP_PASSWORD=mypwd 将来,我将环境变量设置为HTTP\u PROXY、HTTPS\u PROXY、HTTP\u USER、HTTP\u PASSWORD 不知何故,仍然得到以下错误 >t
set HTTP_PROXY=http://user:passowrd@host.com:8080
set HTTPS_PROXY=https://user:passowrd@host.com:8080
set HTTP_USER=myuser
set HTTP_PASSWORD=mypwd
将来,我将环境变量设置为HTTP\u PROXY、HTTPS\u PROXY、HTTP\u USER、HTTP\u PASSWORD
不知何故,仍然得到以下错误
>terraform init
Initializing the backend...
Initializing provider plugins...
- Checking for available provider plugins...
Registry service unreachable.
This may indicate a network issue, or an issue with the requested Terraform Registry.
Error: registry service is unreachable, check https://status.hashicorp.com/ for status updates
请注意,在代理后面具有访问权限。
但是我不确定terraform init实际是哪个URL/服务API访问的为我使用代理:
C:\Users\xxxx\Desktop\VMWare\u Scripts\Terraform>设置HTTP\u代理=http://xxxx:8080
C:\Users\xxxx\Desktop\VMWare\u Scripts\Terraform>Terraform init
正在初始化后端
正在初始化提供程序插件
- 正在查找hashicorp/vsphere的最新版本
- 正在安装hashicorp/vsphere v1.24.1
- 已安装的hashicorp/vsphere v1.24.1(由hashicorp签署)
- hashicorp/vsphere:version=“~>1.24.1”