I'd precisely the same problem on Home windows 10. It comes about to get due to the aws cli not looking at the net proxy location through the Home windows registry. Mounted exact error by location the surroundings variables HTTP_PROXY and HTTPS_PROXY to the company Web proxy. Hope it can help someone!If you have proxy included for your ec2 machines