What is AWS CLI?
The AWS CLI is an open-source tool used to communicate with various AWS services with the help of commands in the user's own system.
It helps you to configure, and manage the AWS services and 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.
Step 1. To begin the installation run the following command.
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
Step 2. Next, you must unzip the downloaded package
Unzip awscli-bundle.zip
Step 3. Once the package is 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
Step 1. Click on the below link to download the AWS CLI MSI installer for Windows (64-bit), https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi
Click on the below link to download the AWS CLI MSI installer for Windows (32-bit), https://s3.amazonaws.com/aws-cli/AWSCLI32PY3.msi
Wait for the installation to complete.
Step 2. Go to the downloaded folder and double-click the Windows AWS CLI installer file.
Step 3. Click on Next to proceed further with the AWS CLI setup wizard installation.
Step 4. Select "I accept the terms in the License Agreement" and click on Next.
Step 5. Click on Next to proceed further.
Click on Next,
Step 6. Click on the Install button to start the installation process.
Click on Install,
Step 7. Click on the Finish button to complete the AWS CLI installation.
Click on Finish,
Step 8. Verify whether AWS CLI is installed or not by utilizing the command "$aws --version".
The above output shows that AWS is successfully installed on Windows.
Step 9. Set up Aws CLI installation utilizing the command "$aws configure". Specify the information such as access key, ID, region, and output format.
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.