AWS/CLI
From r00tedvw.com wiki
(Difference between revisions)
(Created page with "Quick Reference | AWS CLI") |
|||
Line 1: | Line 1: | ||
[[AWS/Quick_Reference|Quick Reference]] | [[AWS/CLI|AWS CLI]] | [[AWS/Quick_Reference|Quick Reference]] | [[AWS/CLI|AWS CLI]] | ||
+ | =Installation (CentOS7)= | ||
+ | Install EPEL | ||
+ | <nowiki>~$ sudo yum install -y epel-release | ||
+ | sudo yum makecache</nowiki> | ||
+ | Find and install PIP | ||
+ | <nowiki>~$ sudo yum search pip | grep python3 | ||
+ | python34-pip.noarch : A tool for installing and managing Python3 packages | ||
+ | python36-pip.noarch : A tool for installing and managing Python3 packages | ||
+ | ~$ sudo yum install -y python36-pip</nowiki> | ||
+ | Verify PIP | ||
+ | <nowiki>~$ pip3 -V | ||
+ | pip 8.1.2 from/usr/lib/python3.6/site-packages (python 3.6)</nowiki> | ||
+ | Upgrade PIP | ||
+ | <nowiki>~$ sudo pip3 install --upgrade pip | ||
+ | ~$ pip -V | ||
+ | pip 19.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)</nowiki> | ||
+ | Install AWS CLI | ||
+ | <nowiki>~$ $ pip search awscli | grep "awscli (" | ||
+ | okta-awscli (0.4.0) - Provides a wrapper for Okta authentication to awscli | ||
+ | awscli (1.16.145) - Universal Command Line Environment for AWS. | ||
+ | ~$ pip install awscli --upgrade --user</nowiki> | ||
+ | Verify AWS CLI | ||
+ | <nowiki>~$ aws --version | ||
+ | aws-cli/1.16.145 Python/3.6.6 Linux/3.10.0-957.10.1.el7.x86_64 botocore/1.12.135</nowiki> |
Revision as of 09:32, 25 April 2019
Quick Reference | AWS CLI
Installation (CentOS7)
Install EPEL
~$ sudo yum install -y epel-release sudo yum makecache
Find and install PIP
~$ sudo yum search pip | grep python3 python34-pip.noarch : A tool for installing and managing Python3 packages python36-pip.noarch : A tool for installing and managing Python3 packages ~$ sudo yum install -y python36-pip
Verify PIP
~$ pip3 -V pip 8.1.2 from/usr/lib/python3.6/site-packages (python 3.6)
Upgrade PIP
~$ sudo pip3 install --upgrade pip ~$ pip -V pip 19.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
Install AWS CLI
~$ $ pip search awscli | grep "awscli (" okta-awscli (0.4.0) - Provides a wrapper for Okta authentication to awscli awscli (1.16.145) - Universal Command Line Environment for AWS. ~$ pip install awscli --upgrade --user
Verify AWS CLI
~$ aws --version aws-cli/1.16.145 Python/3.6.6 Linux/3.10.0-957.10.1.el7.x86_64 botocore/1.12.135