🌐 Step 1: Navigate to the Official Guide
Start by searching:
install AWS CLI version 2 LinuxThen open the official documentation from:
Make sure you’re using AWS CLI Version 2, which is the latest version.
📥 Step 2: Download the Installer
The first command downloads the AWS CLI installer as a ZIP file.
curl "<https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip>" -o "awscliv2.zip"👉 This command fetches the installer from AWS and saves it locally.
📦 Step 3: Unzip the Installer
Next, extract the downloaded file:
unzip awscliv2.zipThis will create a folder containing the installation files.
⚙️ Step 4: Run the Installer
Now install the AWS CLI using:
sudo ./aws/installYou will be prompted to enter your system password
The installation will then proceed automatically
✅ Step 5: Verify Installation
After installation, check that everything works:
aws --version✔ Expected Output
aws-cli/2.x.x Python/3.x Linux ...👉 If you see a version like this, the installation was successful.
🧠 Notes
If
/usr/local/binis in your system path, you can simply run:aws --versionOtherwise, you may need to run:
/usr/local/bin/aws --version
🛠️ Troubleshooting
If you encounter issues:
Ensure
unzipis installed on your systemVerify you used
sudofor installationRevisit the official AWS documentation for guidance