The AWS Command Line Interface (CLI) is a all-in-one tool to manage services available on AWS cloud. On RHEL 8 / CentOS 8 the AWS CLI can be installed by using the python package management system PIP.
In this tutorial you will learn:
- How to install AWS CLI tools on RHEL 8 / CentOS 8
- How to configure AWS CLI tools on RHEL 8 / CentOS 8
- How to remove AWS CLI tools on RHEL 8 / CentOS 8
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | RHEL 8 / CentOS 8 |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
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 |
Install AWS CLI on Redhat 8 step by step instructions
- install package
pip
which will in the later step be used to install the AWS CLI tools. Open the terminal and execute:# dnf install python3-pip
- Use the
pip3
tool to install the AWS CLI tools. As a regular user execute:$ pip3 install awscli --upgrade --user
- Confirm the correct installation by checking the AWS CLI command version:
$ aws --version aws-cli/1.16.60 Python/3.6.6 Linux/4.18.0-32.el8.x86_64 botocore/1.12.50
- Begin AWS CLI configuration:
$ aws configure
- In case you need to remove/uninstall AWS CLI run the following command as a regular user:
$ pip3 uninstall awscli