How to install AWS CLI version 2 on Ubuntu

This post explains how to install latest AWS CLI version 2 on Ubuntu.

Step 1: Download the AWS CLI version 2 installation file.
       

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"

    
    
Step 2: Unzip the installer.
           

unzip awscliv2.zip


Step 3: Run the install program.
           

sudo ./aws/install


Step 4: Verify the installation.
           

aws --version

# Output
aws-cli/2.2.41 Python/3.8.8 Linux/5.11.0-36-generic exe/x86_64.ubuntu.20 prompt/off



Category: AWS