-->
Saturday, January 11.

DEVOPSZONES

How to Install AWSCLI in CentOS 7

How to Install AWSCLI in CentOS 7


The AWS Command Line Interface (AWS CLI) is available in two versions.


  1. AWS CLI version 1
  2. AWS CLI version 2


AWS CLI version 2
The AWS CLI version 2 is the most recent major version of the AWS CLI and supports all of the latest features. Some features introduced in version 2 are not backward compatible with version 1 and you must upgrade to access those features.

Prerequisites

Install "unzip" package if not present.

Installing AWS CLI Tools

Easy Method:

  • curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
  • unzip awscliv2.zip
  • sudo ./aws/install


The PIP Way:

Install EPEL Repository and unzip

[root@localhost ~]#yum install epel-release  unzip -y

Install python-pip

[root@localhost ~]#yum install python-pip

Install AWSCLI

[root@localhost ~]# pip install awscli
Collecting awscli
  Downloading https://files.pythonhosted.org/packages/76/f4/63853217c2065cffaf84e7ca76d861509ee59c058959473f6b562cdda32f/awscli-1.16.265-py2.py3-none-any.whl (2.4MB)
  

Configure the AWS CLI by providing the Access Key, Secret Access Key and the AWS region:
[root@localhost ~]# aws configure
AWS Access Key ID [None]: AccessKeyValue
AWS Secret Access Key [None]: SecretAccessKeyValue
Default region name [None]: ap-south-1
Default output format [None]:

No comments