[CentOS7] Install aws cli

less than 1 minute read

install aws cli

–Download the installation script from the pip website

#Move
cd /var/tmp

#Download Install Script
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python get-pip.py

–Install awscli using pip

sudo pip install awscli

–Version confirmation

#Version confirmation
aws --version
aws-cli/1.18.128 Python/2.7.5 Linux/3.10.0-1127.19.1.el7.x86_64 botocore/1.17.51

–Aws command settings

aws configure
==========
AWS Access Key ID [None]: XXXXXXXXXXXXX
AWS Secret Access Key [None] : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Default region name [None] : xxxxxxxx
Default output format [None]: json
==========
AWS Access Key ID :access key
AWS Secret Access Key :Secret key
Default region name :Default region(reference: https://docs.aws.amazon.com/ja_jp/general/latest/gr/rande.html)
Default output format :Default format