This error suggests that the AWS CLI (command line interface) was not found or installed.
You can try the following to install it:
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
source
โ
> #############[ FATAL ERROR ]#############
>
> Non zero exit status (1) for:
>
> which aws
>
> With response:
>
> which: no aws in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)