AWS CloudLinux

How to Install AWS CLI in LINUX

In this tutorial, we are going to learn How to install AWS CLI in LINUX, which is command line interface for AWS Cloud which is used for administration of Amazon Web Services. Using AWS CLI, easily we can manage all the resources on AWS. AWS CLI is available for Windows, Linux as well Mac OS

AWS CLI is updated frequently with support for latest/new services and commands provided by AWS.

Check the latest release page on GitHubHow to Install AWS CLI in LINUX

Pre-requisite to install AWS CLI on Linux

Python version 2.6.5+ / Python version 3.3+

Support OS – Linux, MacOS, Unix or Windows

Note: If you are using an old version of python then aws cli may not work and you may see “InsecurePlatformwarning” or deprecation notices. To resolve this update to latest version, you can update with below command.

“–upgrade” option tells pip to upgrade the current package.

“–user” option tells pip to install the program to a subdirectory of your user directory to avoid modifying libraries used by your operating system.

Command to verify AWS CLI updated/installed

AWS CLI is regularly updated and support for the latest services and command. You can update it with below command.

Uninstall AWS CLI using pip or yum command

If you don’t have pip command installed then install it by mention steps

Steps to install pip on Linux

  1. Download the script:
  1. Run the script with python:
  1. Verify that pip is installed correctly

AWS Command Line Interface: The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts. –Ref by AWS Doc.

Steps to install AWS CLI in Ubuntu

We can have default package manager for installing AWS CLI

For Ubuntu:

For Linux:
Install Updated Version, run the pip command
To Upgrade

How to configure AWS CLI

After Installation of AWS CLI you need to configure it, run the “aws configure” command and it will ask you  ‘AWS Access Key ID’, then ‘AWS Secret Access Key’ & lastly ‘Default Region Name’ these all details you can get from your AWS Account – Login to your AWS Console and goto IAM service.

Related Articles

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Adblock Detected

Please consider supporting us by disabling your ad blocker
%d bloggers like this: