All theese scripts assume that you have activated the python environment that aws-cli uses. An alternative is to add to the top of each of the scripts the below line: source <PATH_TO_THE_PYTHON_ENV>/bin/activate