AWS CLI not working behind proxy

0

Issue: I’m trying to get aws cli working through a proxy on a Windows or linux guest VM but not having any luck.

Note: all my VMs are configured with my organization proxy, these allows us to connect successfully to Internet via https

requirement: ( testing Aws cloud ) Configure Aws CLI on a windows and Linux guest vm which is connected to Internet via proxy-server. have set the PROXY address as per the AWS documentation (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-proxy.html), but still getting error "Failed to connect to proxy URL https:\IPADDRESS:PORTnumber"

note: I am able to connect to Azure cloud using azure cli from the same VMs.

How do i connect to aws cli using the proxy ?

Regards Nithin

NK
asked a year ago1756 views
1 Answer
0

If the proxy settings (both HTTP_PROXY and HTTPS_PROXY) are correct & working with other python applications like azure-cli, then my next quess would be incorrect or mis-spelled region. With older versions of aws-cli you got the proxy error when actual problem was with region setting.

Here is a github issue describing the case https://github.com/aws/aws-cli/issues/3872

But in your post it says "https:\IPADDRESS:PORTnumber". I think it should be "https://..." or "http://..." ?

profile picture
EXPERT
Kallu
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions