AWS Command Line Interface (CLI) is a set of tools written on Python and is officially distributed by AWS as a pip package. You can install AWS CLI on Ubuntu without installing pip because AWS CLI has been re-packaged and distributed in Ubuntu's default package repository.
AWS CLI tools can be installed on Ubuntu using apt from the terminal.
Steps to install AWS CLI tools on Ubuntu:
- Launch your preferred terminal application.
- Update apt's package list.
$ sudo apt update [sudo] password for user: Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [103 kB] Hit:2 http://archive.ubuntu.com/ubuntu impish InRelease Get:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease [109 kB] Hit:4 http://archive.ubuntu.com/ubuntu impish-backports InRelease Get:5 http://security.ubuntu.com/ubuntu impish-security/main amd64 DEP-11 Metadata [4,680 B] Get:6 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 DEP-11 Metadata [14.3 kB] Get:7 http://archive.ubuntu.com/ubuntu impish-updates/universe amd64 DEP-11 Metadata [2,004 B] Fetched 233 kB in 1s (178 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date.
- Install awscli package using apt.
$ sudo apt install --assume-yes awscli Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: docutils-common groff gsfonts imagemagick imagemagick-6-common imagemagick-6.q16 libde265-0 libheif1 libilmbase25 libjxr-tools libjxr0 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libnetpbm10 libopenexr25 netpbm psutils python3-botocore python3-docutils python3-jmespath python3-pyasn1 python3-pygments python3-roman python3-rsa python3-s3transfer ### snipped ###
- Configure AWS CLI tool to start managing your AWS infrastructure.
Related: How to configure AWS CLI tool
This guide is tested on Ubuntu:
Version | Code Name |
---|---|
22.04 LTS | Jammy Jellyfish |
23.10 | Mantic Minotaur |
24.04 LTS | Noble Numbat |
![](https://www.simplified.guide/_media/page/author/shakir/mohd-shakir-zakaria.jpg?w=200&tok=d15487)
Author: Mohd
Shakir Zakaria
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
![](data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABOElEQVRIia2VYXHDMAyFPwiBEAiBYAYLg5lBC8EQyqBmsDFoGKQMFgYNg+1H5jtFtmMn6bvzj9jWe7IUSVBGD9yBh1p34KPCPosr8AJ+C+sFXPYQd8BYQazX+G9bJK/xeus1WRFJ7oAGsMAkCCbgKb5ncbcXIm1KQBoasd9kvGoTRDJcK1jWT+1THhTQKg4rD+c3CUien3BgFPlwgDzAKS4DcGPjaTvRKa4bLB5HqicQReOdAk2NwPWEgKkReJwQ0PkcALzaPBqmhrjNeIiLLJT7HpFcg7RBWcbfsQ7XhXyr+GSZC7nm14TLXnjeERdMKvH6n9fLa29CmYckO5YkfUtPFKYM+Uyio1pxoXZCDRkBmzPw4tIIfLH926YEfMkrlzCqFaguUsN6AJUEnhxsMT1LknNwFGbHH5UF4DVNwliLAAAAAElFTkSuQmCC)
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
Discuss the article:
Comment anonymously. Login not required.