install aws cli in ubuntu code example

Example 1: install aws cli 2 yum

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
sudo yum install -y unzip
unzip awscliv2.zip
sudo ./aws/install -i /usr/local/aws-cli -b /usr/local/bin

Example 2: aws cli install

# AWS CLI V2
# Installing on linux
# depends on glibc, groff, and less

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

Example 3: amazon cli on commadline

sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Tags:

Misc Example