For running the aws through CLI we need to install a software i.e. AWS CLI V2 which is the latest version. code example
Example: 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