terraform-provider-vsphere
terraform-provider-vsphere copied to clipboard
provider is not using HTTPS_PROXY variable
Community Guidelines
- [X] I have read and agree to the HashiCorp Community Guidelines .
- [X] Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
- [X] Do not leave "+1" or other comments that do not add relevant information or questions.
- [X] If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
v1.6.1
Terraform Provider
2.8.2
VMware vSphere
7.0.3.01900
Description
Hello, I access to the vsphere server using a corporate proxy. When i run terraform, i get a timeout error:
│ Error: error setting up new vSphere SOAP client: Post "https://xxx.xxx.xxx.xxx/sdk": dial tcp 10.195.7.5:443: connect: connection timed out
The vsphere provider seems to not use the HTTPS_PROXY env var. For exemple, Govmomi have fix this issue in the following commit.
Best regards, Sébastien
Affected Resources or Data Sources
All ressources
Terraform Configuration
provider "vsphere" { alias = "DC01" user = xxxx password = xxxx vsphere_server = xxxx
We have self-signed cert on almost all of our vshpere hosts
allow_unverified_ssl = true }
Debug Output
https://gist.github.com/sinc59/0ada82d2478e33649eb9f93fa9c4acd9
Panic Output
No response
Expected Behavior
vpshere provider following the HTTPS_PROXY env var
Actual Behavior
vsphere provider does not use HTTPS_PROXY env var
Steps to Reproduce
Set the HTTPS_PROXY env var:
HTTPS_PROXY="127.0.0.1:3128"
Environment Details
No response
Screenshots
No response
References
No response