Appendix
Learn to install the Command Line Interface (CLI) that AWS provides to interact with its services.
We'll cover the following
The Command Line Interface (CLI) of AWS is very important as it allows us to interact with AWS by any command line and automate tasks. This CLI can be installed on any operating system. This lesson contains the steps to install the CLI of AWS on Mac, Linux and Windows. All of the information that this lesson contains can be verified from AWS official documentation.
Prerequisites
To install the AWS CLI, it’s important to have python 2.7 or later, or python 3.6 or later on your device.
Linux
-
Download the bundle using the terminal or directly from AWS:
a. Download using the terminal:
curl https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip
b. Download directly from this link: https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
- Open a terminal and extract the bundle file by executing:
unzip awscli-bundle.zip
- Run the install program by executing the following command:
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
- Once installation is done, it is important to confirm that everything is working properly.To do so, open a terminal and type:
aws --version
It will return the current version installed.
Windows
-
Download msi installer:
a. 64-bit:
https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi
b. 32-bit:
https://s3.amazonaws.com/aws-cli/AWSCLI32PY3.msi
-
Execute installer.
-
Follow the instructions.
-
Once the installation is done, it is important to confirm that everything is working properly. To do so, open a terminal and type:
aws --version
. It will return the current version installed.
Mac
-
Download the bundle using the terminal or directly from AWS:
a. Download using the terminal and the following command:
curl https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip
b. Download directly from this link:
https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
- Open a terminal and extract the bundle file by executing:
unzip awscli-bundle.zip
- Run the install program by executing the following command:
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
- Once installation is done, it is important to confirm that everything is working properly, to do so open a terminal and type:
aws --version
It will return the current version installed.
Get hands-on with 1200+ tech skills courses.