Ubuntu Install AWS CLI

Mohamad MahmoodMohamad Mahmood
1 min read

Install curl unzip:

sudo apt install curl unzip

Download the latest version of the AWS CLI from Amazon's servers:

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

Unzip the files:

unzip awscliv2.zip

Install AWS CLI with the command:

sudo ./aws/install

Post-installation, run aws:

aws --version

If the AWS CLI binary is installed in /usr/local/bin/aws, but you're encountering the error message "bash: /usr/bin/aws: No such file or directory" when running the aws command, you can fix the problem by creating a symbolic link from /usr/local/bin/aws to /usr/bin/aws :

sudo ln -s /usr/local/bin/aws /usr/bin/aws

Then, run aws:

aws --version

Reference:

https://aws.amazon.com/getting-started/guides/setup-environment/module-three/

0
Subscribe to my newsletter

Read articles from Mohamad Mahmood directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mohamad Mahmood
Mohamad Mahmood

Mohamad's interest is in Programming (Mobile, Web, Database and Machine Learning). He studies at the Center For Artificial Intelligence Technology (CAIT), Universiti Kebangsaan Malaysia (UKM).