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.
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
Other Versions of this Tutorial
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
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]: