AWS CLI

From DikapediaV2
Jump to: navigation, search

How to uninstall AWS CLI v1 (on AL2)


Uninstall aws cli v1:

 $ sudo yum remove awscli

https://docs.aws.amazon.com/cli/v1/userguide/install-linux-al2017.html#install-amazon-linux-yum-uninstall


How to install AWS CLI v2 (on AL2)


curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

or another way:

$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update

(I tested both, both works)

exit
(log back in)

$ aws --version
aws-cli/2.4.11 Python/3.8.8 Linux/4.14.256-197.484.amzn2.x86_64 exe/x86_64.amzn.2 prompt/off


https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html