Amazon Web Services Bootcamp
上QQ阅读APP看书,第一时间看更新

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