I'd exactly the same difficulty on Windows ten. It occurs being because of the aws cli not looking at the web proxy placing from the Windows registry. Fastened exact same error by placing the environment variables HTTP_PROXY and HTTPS_PROXY to the corporate Online proxy. Hope it can help someone! when you have proxy added towards your ec2 device