Objective

The objective is to install AWS CLI on Ubuntu 18.04 Bionic Beaver Linux.

This article will describe a procedure on how to install AWS CLI on Ubuntu 18.04 from a standard Ubuntu repository using the apt command as well as how to install AWS CLI using the snap package.

Operating System and Software Versions

  • Operating System: - Ubuntu 18.04 Bionic Beaver

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions

Install AWS CLI on Ubuntu using Snap package

The first approach on how to install AWS CLI on Ubuntu 18.04 is by using the snaps command. Open up terminal and enter:
$ sudo snap install aws-cli --classic
aws-cli 1.14.57 from 'aws' installed
Check for the aws version to confirm the installation:
$ aws --version
aws-cli/1.14.57 Python/3.5.2 Linux/4.15.0-10-generic botocore/1.9.10

SUBSCRIBE TO NEWSLETTER
Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


Use the configure option to continue with the AWS CLI configuration:
$ aws configure
AWS Access Key ID [None]:

Install AWS CLI on Ubuntu via Ubuntu repository

Another alternative on how to install AWS CLI on Ubuntu 18.08 is by using Ubuntu standard repositories via execution of the apt command:
$ sudo apt install awscli
Confirm installation:
$ aws --version
aws-cli/1.14.44 Python/3.6.4+ Linux/4.15.0-10-generic botocore/1.8.48
Use the configure option to continue with the AWS CLI configuration:
$ aws configure
AWS Access Key ID [None]:
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.