Installing AWS CLI on Linux
In this article we will see how to install AWS CLI on a Linux, but before we go there let's briefly discuss what is AWS CLI?
AWS CLI stands for Amazon Web Services Command Line Interface, it is an open source tool that enables you to interact with and manage your AWS services.
We will be installing AWS CLI version 2 as it is recommended by AWS and has no dependencies on other Python packages, it is pretty much self sufficient.
- You must be able to extract or "unzip" the downloaded package. If your OS doesn't have the built-in unzip command, please install it or use an equivalent.
- glibc, groff, and less packages are used by AWS CLI version 2, most major distributions of Linux have them included by default.
Steps to install AWS CLI version 2
- Download the installation file using the following command
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- Unzip the downloaded package. If your Linux distribution doesn't have a built-in unzip command, install it or use an equivalent to unzip or extract it
- Once you unzip the package, run the installation
- You can confirm the installation by running the following command to check for the version
it should display something like this
aws-cli/1.18.212 Python/3.8.5 Linux/5.4.0-60-generic botocore/1.19.52
There you go, you have successfully installed AWS CLI version 2 your Linux system!
Next, you will need to configure credentials to start using AWS CLI, the detailed steps for which are illustrated in the article - Configuring AWS CLI