How to set up terraform behind proxy?

Antoine

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.

Here is the error I am getting:

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 "https://registry.terraform.io/.well-known/terraform.json":
proxyconnect tcp: tls: first record does not look like a TLS handshake 

There are no problem in my infrastructure as I have already tried it on another computer with no proxy and it works.

Thank you in advance.

Asri Badlah

I am using terraform proxy with password, by setting environment variables like the following:

HTTP_PROXY=http://<username>:<password>@<proxy>:<port>
HTTPS_PROXY=http://<username>:<password>@<proxy>:<port>

set HTTPS_PROXY to http url not https

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to set up an ubuntu touch emulator instance behind a proxy with authentication

How to set proxy on rstudio from dockerhub behind a proxy?

How to set up a proxy for Webpack in production

Webpack 4 Proxy (How to set up proxy url in webpack 4)

Set up proxy for selenide?

how to set up AWS Secrets with static credentials using terraform

How to set up a firewall rule using Terraform for an AWS Lightsail instance?

How to set up the same Terraform formatting style in VSCode and Intellij

How can I set up AWS CLI using Terraform

How to pass proxy URL to the machine behind that proxy?

How to use ntpdate behind a proxy?

How to ping when behind a proxy?

How to set up a node http proxy to intercept a particular request/response?

How do I set up curl to permanently use a proxy?

How can I set up my own VPN proxy?

How to set up Web API Routing for a Proxy Controller?

How do I set up a linux proxy for my mac

How to set-up a docker registry acting as a Proxy?

IIS 8.5 How to set up reverse proxy with URL Rewrite

How should I set up a reverse proxy with nginx?

How to set up system wide proxy in Kali Linux?

How to set up Nginx reverse proxy on the same port as the application?

How to set up routing of https to proxy server on client

How might one set up a reverse proxy that cannot decrypt traffic?

Set up a proxy with python requests

Set up proxy on selenium geckodriver

How to set up SSL with custom domains with several App Service behind a Traffic Manager?

How to configure Angular 4 behind Proxy?

How can I use httpotion behind the proxy?