title: How to set up terraform behind proxy?
body: <p>I am trying to run terraform behind a proxy on Windows. I have already set my proxy on CMD by doing: set HTTP_PROXY and set HTTPS_PROXY.</p>
  <p>Here is the error I am getting:</p>
  <pre><code>Initializing provider plugins...
  - Finding latest version of hashicorp/aws...
  
  Error: Failed to query available provider packages
  
  Could not retrieve the list of available versions for provider hashicorp/aws:
  could not connect to registry.terraform.io: Failed to request discovery
  document: Get &quot;https://registry.terraform.io/.well-known/terraform.json&quot;:
  proxyconnect tcp: tls: first record does not look like a TLS handshake 
  </code></pre>
  <p>There are no problem in my infrastructure as I have already tried it on another computer with no proxy and it works.</p>
  <p>Thank you in advance.</p>