• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Install AWS CLI on Ubuntu 16.04

August 11, 2019

I ran into an issue with AWS CLI on Ubuntu 16.04. I was getting this error, “AWSHTTPSConnection’ object has no attribute ‘ssl_context” every time I try to do a simple “aws s3 ls” command. So, here’s the fix.

Assuming you installed “awscli” using apt. Go ahead and uninstall it.

apt remove awscli

apt remove awscli

Install awscli using pip instead.

apt install python-pip
pip install awscli
aws --version

apt install python-pip pip install awscli aws --version

If this is a fresh install, you may have to run “aws configure.”

Filed Under: Cloud Tagged With: aws, awshttpsconnection, cli, error, fix, install, pip

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023