6 C
Texas
angeloma
Senior Writer and partner

How to install AWS CLI on Ubuntu 18.04?

Nowadays, the concept of Cloud Computing is something quite popular in the world. It is used more and better within companies. This is due to the high speeds of internet connection that exist today and the advantages it provides. Within that field, there are many companies that offer their services to others such as Amazon. Amazon has its infrastructure service in the cloud called Amazon Web Servicer and for that, there is also the AWS CLI. Today I will show you how to install AWS CLI on Ubuntu 18.04.

Amazon Web Service is the product offered by Amazon to establish a public cloud computing infrastructure. It consists of several elements necessary for the storage, access, and safeguarding of the data of a company. In addition to all network components required for access. That is, all this replacing the outdated server infrastructure.

As you will notice, there are many possibilities you can explore with this service, however, to further enhance the form of administration of the service, there is AWS CLI. That is, an application written in Python that runs from the terminal.

Today, I will install AWS CLI on Ubuntu 18.04.

1. Upgrade the system

- Advertisement -

As always the first step is to update your system completely. It is advisable to do it frequently.

:~$ sudo apt update && sudo apt upgrade

1.- Upgrade the system
1.- Upgrade the system

With this done, your system will be more stable and functional.

2. Install Python 3

The AWA CLI tool is made in Python, so the second step is to install the latest version of Python.

Doing it is quite simple, here we explain how to do it without any problems. So, let’s do it.

3. Install AWS CLI using PIP (Recommended)

The easiest and most direct way to install AWS CLI is through PIP. This will save you a lot of trouble, but you may not always have the latest stable version. It’s up to you.

First, install PIP.

:~$ sudo apt install python3-pip

2.- Install PIP
2.- Install PIP

First, upgrade PIP.

:~$ pip3 install --upgrade pip

3.- Upgrade PIP
3.- Upgrade PIP

Doing this is important because PIP will always have the latest packages and dependencies. Remember that all software advances and becomes newer, with this you guarantee that no problem occurs.

Next, install AWS CLI.

:~$ sudo -H pip3 install awscli --upgrade --user

4.- Install AWS CLI
4.- Install AWS CLI

Let me explain the command a little:

  • pip3: It is a utility to install packages and libraries built with python.
  • Install: This option tells PIP that you are going to install a package.
  • awscli: It is the package you are going to install.
  • –upgrade: The –upgrade option tells pip to upgrade any requirements that are already installed. So, you have to do it to avoid problems.
  • –user: This option is useful and important. This indicates that AWS CLI will be installed in a user folder and will avoid being installed along with other system libraries.

So, AWS CLI is installed. Check the version.

:~$ cd ~/.local/bin/
:~$ ./aws --version

5.- aws version
5.- AWS CLI version

Note: To update AWS CLI using this method, you must frequently run the same installation command.

Another way to install it

The above method is the simplest, but not necessarily the only one. With this method, you will always be able to download the latest stable version of AWS CLI, but you will have to update it manually. So it is not very recommendable, however, I will explain how to do it.

So, you need to install it using the bundle installer.

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

6.- Download the bundle
6.- Download the bundle

Decompress the file.

:~$ unzip awscli.zip

7.- Unzip the file
7.- Unzip the file

Finally, run the executable.

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

And that’s it.

Conclusion

The installation of this tool is quite simple and allows to manage better AWS and thus be more productive.

Share this article with your friends.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article