Install AWS Command Line Interface on Manjaro Linux

install AWS CLI on Manjaro

Hello Manjaro users, welcome to my website. Today we are going to install AWS CLI on Manjaro Linux. The AWS CLI is an open source program that was built on top of AWS SDK for Python. It provides command to interactively communicate with the AWS services. With a little efforts, we can use all functionality of tht AWS Management Console from our Terminal. For example, we can use this command line to upload a file to Amazon S3 storage directly from Terminal. From more complete information, please visit the official website.

Install AWS CLI on Manjaro Linux

Before we go through, if you are Ubuntu or Debian users, you may check our previous tutorial to install AWS CLI on Debian 9 Stretch. Also don’t forget to check our Linux Ultimate Guide for beginners. The primary distribution method for AWS CLI is using pip, a Python package manager that offers an easy way to install, upgrade python packages and dependencies.

Step 1. Install Python

AWS CLI requires Python to work. Now check if you have Python 3 installed on your Manjaro Linux. 

python --version

Make sure you have Python version 3 or newer. 

[dhani@dhani-manjaro ~]$ python --version
Python 3.6.2

If you don’t have Python 3, you need to install it first. 

sudo pacman -S python3

Step 2. Install pip

Next, we need to install pip. Use the following command on Terminal to install pip

sudo pacman -S python-pip

Output

[dhani@dhani-manjaro ~]$ sudo pacman -S python-pip
[sudo] password for dhani: 
resolving dependencies...
looking for conflicting packages...

Packages (1) python-pip-9.0.1-2

Total Download Size:   1,34 MiB
Total Installed Size:  6,22 MiB

:: Proceed with installation? [Y/n]

Step 3. Install AWS CLI

Now we are ready to install AWS Cli on Manjaro Linux. Type the following command on Manjaro Terminal. Please prepare you Amazon secret id and secret key in hands. You will need it.

pip install awscli --upgrade --user

Output:

Step 4. Configure aws cli

At this point, we were successfully installed aws in user mode. But, you may still got an error when trying to run aws command. To do this, we need to modify some stuffs. 

Modify PATH variable

Usually, aws is installed under ~/.local/bin directory. Now use this command to add this path to our profile script. 

export PATH=~/.local/bin:$PATH

This command will add the path of ~/.local/bin to the current PATH variable. 

Reload the profile into current session

source ~/.bash_profile

Done. Now aws command should works. Lets start by checking its version

[dhani@dhani-manjaro ~]$ aws --version
aws-cli/1.11.170 Python/3.6.2 Linux/4.9.43-1-MANJARO botocore/1.7.28

That’s it. We are successfully install AWS CLI on Manjaro Linux. We may post more tutorial on how to use aws command to backup Linux to Amazon S3 and other stuffs. Cheers.

 

Be the first to comment

Leave a Reply