Install AWS CLI on Linux
This article explains how to install the AWS CLI on Ubuntu.
Reference
Environment
- Ubuntu 22.04.3 LTS
To install the AWS CLI, the unzip
utility is required.
If it’s not already installed in your environment, run the following command:
$ sudo apt install unzip
Then, install the AWS CLI with the following commands:
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install
To verify the AWS CLI installation, run:
aws --version
aws-cli/2.27.55 Python/3.13.4 Linux/6.6.87.2-microsoft-standard-WSL2 exe/x86_64.ubuntu.22
If if the AWS CLI version is displayed, the installation was successful.