Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon Web Services Bootcamp

You're reading from  Amazon Web Services Bootcamp

Product type Book
Published in Mar 2018
Publisher Packt
ISBN-13 9781788294454
Pages 338 pages
Edition 1st Edition
Languages
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:
  • 64-bit: https://s3.amazonaws.com/aws-cli/AWSCLI64.msi
  • 32-bit: https://s3.amazonaws.com/aws-cli/AWSCLI32.msi
  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 installpip (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

You have been reading a chapter from
Amazon Web Services Bootcamp
Published in: Mar 2018 Publisher: Packt ISBN-13: 9781788294454
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 €14.99/month. Cancel anytime