How to install AWS CLI on Ubuntu


You can install AWS CLI on your Ubuntu OS by downloading the awscliv2.zip from the AWS documentation page,

AWS CLI For Ubuntu x86 64-bit
# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
AWS CLI For Ubuntu ARM
# curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"

Make sure you have curl, unzip, and Sudo packages installed before installing AWS cli

Once you download the package, unzip and run the install script,

# unzip awscliv2.zip
# sudo ./aws/install

You can test if the AWS CLI was installed correctly or not using the version command,

# aws --version
aws-cli/2.7.23 Python/3.9.11 Linux/5.10.104-linuxkit exe/aarch64.ubuntu.22 prompt/off
AWS CLI 2 installation on Ubuntu
Read more: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.