Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon Web Services Bootcamp

You're reading from   Amazon Web Services Bootcamp Develop a scalable, reliable, and highly available cloud environment with AWS

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788294454
Length 338 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Sunil Gulabani Sunil Gulabani
Author Profile Icon Sunil Gulabani
Sunil Gulabani
Arrow right icon
View More author details
Toc

Installing the AWS CLI

The AWS Command Line Interface (CLI) is one of the ways to interact with AWS services. We will be showcasing CLI commands to use certain services in forthcoming chapters. So, as a prerequisite, we will install the AWS CLI on our machine.

Windows

To install the AWS CLI on Windows, we can install it directly by using MSI Installer or by using pip (package manager for Python). We will demonstrate the installation using MSI Installer:

  1. Download the installer from the following link, as per your machine's compatibility:
  1. Execute MSI Installer and follow the instructions.
  2. Once installed, you can check the installation by using the following command:
aws --version

The following output should be visible on the command line. The version may vary if you are installing older or later versions:

Figure 1.9: AWS CLI version

Linux

To install the AWS CLI on a Linux machine, we need to install pip (a package manager for Python):

  1. Download the script for installing pip:
curl -O https://bootstrap.pypa.io/get-pip.py
  1. Install pip:
python get-pip.py -user
  1. Add the pip installation path in the environment variables:
export PATH=~/.local/bin:$PATH
  1. Verify the pip installation:
pip --version
  1. Install the AWS CLI:
pip install awscli --upgrade --user
  1. Once installed, you can check the installation using the following command:
aws -version

The following output should be visible on the command line. The version may vary if you are installing older or later versions:

Figure 1.10: AWS CLI version - Linux
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime