Install AWS CLI on Red Hat 7
Step 1: Install pip using following commands.
# curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
# sudo python get-pip.py
Step 2: Install AWS CLI using pip
# sudo pip install awscli
Step 3: Set up the CLI using the following command.
# aws configure
Note: If you have attached IAM role to your instance, you need not enter the access key and secret key. You just need to enter the region name and output format.