How to install AWS CLI on Debian 11 Bullseye Linux

To manage AWS servers, Amazon cloud offers a command-line interface tool called AWS CLI. It is an open-source program that helps users to manage and automate various Amazon cloud servers directly from their system’s command-line shell. Here we learn the steps to install the AWS CLI tool on Debian 11 Bullseye or 10 Buster using the terminal.

It is a cross-platform tool, hence apart from Linux, it is also available for Windows and macOS, along with direct access to public APIs for AWS.

Till now, it has two versions one is AWS CLI 2.x, the current version meant to use in production; whereas Version 1.x is the earlier version available for backward compatibility.

AWS CLI installation on Debian 11 Bullseye Linux

1. Open a command terminal

If you are using the Debian server with CLI, you are already there, whereas the GUI desktop users can go to all Applications to run the Terminal app.

 

2. Download AWS CLI installation script

Here we are downloading the script to install AWS CLI Version 2 on Linux. If you want the previous version then visit Github and download it.

wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -O awscliv2.zip

Extract downloaded zipped file

unzip awscliv2.zip

Download AWS CLI installation script

Users want to install Version 1.x

wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -O awscli1.zip
unzip awscli1.zip
sudo ./awscli1/install -i /usr/local/aws -b /usr/local/bin/aws

 

3. Install AWS CLI version 2 on Debian 11 or 10

Now, switch to the extracted directory and run the AWS CLI installation script using the command given below under sudo rights.

cd aws
sudo ./install

 

4. Check version

We already have completed the installation of the AWS CLI tool on Debian 11 or 10 successfully now let’s check the version.

aws --version

Check version AWS CLI tool version on Debian 11 Linux

 

5.  To get help to know the available commands & options

Run the help command, whereas to know more about its command structure refer to the official documentation.

aws help

 

This was the quick way to get this Amazon Web service command-line management tool on your local system to easily control your cloud server services.

 

Leave a Reply

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