Ubuntu Install AWS CLI
Install curl unzip:
sudo apt install curl unzip
Download the latest version of the AWS CLI from Amazon's servers:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
Unzip the files:
unzip awscliv2.zip
Install AWS CLI with the command:
sudo ./aws/install
Post-installation, run aws:
aws --version
If the AWS CLI binary is installed in /usr/local/bin/aws, but you're encountering the error message "bash: /usr/bin/aws: No such file or directory" when running the aws command, you can fix the problem by creating a symbolic link from /usr/local/bin/aws to /usr/bin/aws :
sudo ln -s /usr/local/bin/aws /usr/bin/aws
Then, run aws:
aws --version
Reference:
https://aws.amazon.com/getting-started/guides/setup-environment/module-three/