AWS Command Line Interface (CLI) Installation And Configuration

What is AWS CLI?

 
The AWS CLI is an open-source tool iused to communicate with various AWS services with the help of commands in the user own system.
 
It helps you to allow configure, and manage the AWS services also helps you to automate those by running scripts.
 
It involves a few configuration steps, to start to automate your AWS services.
 
In this document, we have explained the installation procedure for AWS CLI in Windows systems.
 

Linux Installation (Ubuntu)

 

Prerequisites

 
Ensure that we have at least Python 2 version 2.6.5+ or Python 3 version 3.3+ installed.
 
To verify the Python version, run the command:
 
python --version
  

Installation

 
To install the AWS CLI  use the bundled installer provided by AWS. The bundled installer includes all dependencies required for the installation.
 
1. To begin the installation run the following command:
Curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
 
2. Next, you must unzip the downloaded package
Unzip awscli-bundle.zip
 
3. Once the package in unzipped, you can run the installation:
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
 
Using the -b option allows all users to use the AWS CLI from any directory, meaning we will not need to specify the install directory in the user’s $PATH variable.
 

Windows Installation

 

Prerequisites

 
It requires Microsoft Windows XP or Later.
 
Installation Procedure
 
1. Click on the below link to download the AWS CLI MSI installer for Windows (64-bit)
 
imagr1
 
Click on the below link to download the AWS CLI MSI installer for Windows (32-bit)
 
image2
 
Wait for the installation to complete
 
2. Go to the downloaded folder and double click the Windows AWS CLI installer file.
 
image3 
 
3. Click on Next to proceed further with the AWS CLI setup wizard installation.
 
image5
 
4. Select the "I accept the terms in the License Agreement" and click on Next.
 
image7
 
5. Click on Next to proceed further.
 
image9 
 
Click on Next
 
6. Click on the Install button to start the installation process.
 
image11 
 
Click on Install
 
7. Click on the Finish button to complete the AWS CLI installation.
 
image13 
 
Click on Finish
 
8. Verify that AWS CLI is installed or not by utilizing the command "$aws --version".
 
image15
 
The above output shows that AWS is successfully installed on Windows
 
9. Set up Aws CLI installation utilizing the command "$aws configure". Specify the information such as access key, ID, region and output format.
 
image19 
 
AWS CLI is configured successfully.
 
Thank you for reading this article. Please like and share, if you have any concerns about this article please let me know in the comment session.