AWS CLI is a command-line interface that allows you to operate and manage AWS resources. Let's install AWS CLI that allows you to manage AWS services and resources from Linux/Unix terminal. Once AWS CLI is installed, we need to verify it by checking its version. Please read the
AWS CLI documentation to know more.
# Install Python 3.8.
$ sudo apt install python3.8
# Install Pip 3.
$ sudo apt install python3-pip
# Set Python 3.8 as default interpreter and Python 3.6/2.7 as fallback interpreters.
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 3
# List Python versions available.
$ sudo update-alternatives --list python
# Check Python version.
$ python --version
# Check Pip version.
$ pip --version
# Install AWS CLI.
$ sudo pip install awscli
# Check AWS CLI version.
$ aws --version