Arch Linux

How to Install AWS CLI On Arch Linux

Using AWS CLI, or Amazon Web Services Command-Line Interface, you can manage your AWS services. This tool allows users to control different AWS services via the command line. It’s a great tool for managing everything in AWS.

The utility only requires Python to execute, so that’s the only requirement. In this tutorial, you will learn about how to install AWS CLI on Arch Linux step by step. You may quickly create shell scripts to control your resources on the AWS cloud using AWS CLI.

The Bundled Installer approach is compatible with any Linux distribution; the only prerequisite is Python 2 version 2.6.5 or Python 3 version 3.3.

Step 1: Install the AWS CLI Bundled Installer using the AWS CLI Bundled Installer. Directly from curl, you can do this.

curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"

Step 2: Open the package and unzip it.

Install the unzip package on your Linux system by following these steps:

Arch Linux

sudo pacman -S unzip

Ubuntu

sudo apt-get -y install unzip

CentOS

sudo yum -y install unzip

Unzip the package with the command:

unzip awscli-bundle.zip

Once the package has been unzipped, follow these steps to install it:

sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Check the installed version:

$ /usr/local/bin/aws --version

The AWS CLI tool can also be installed without sudo by placing the binary in /bin/aws.

curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"

Unzip awscli-bundle.zip

./awscli-bundle/install -b ~/bin/aws

To use the AWS CLI tool to communicate with AWS services, you must first configure it with the AWS configure command.

$ awsconfigure

Conclusion

You can install AWS CLI in any Linux OS to manage the AWS-related services more conveniently through the command line. Because the tool is based on Python, the prerequisites are simple to set up, and AWS CLI can be installed on its own. We have explained everything you need to have AWS CLI in your system.

About the author

Ankit Sharma