Veraxus:
the script also needs to detect Amazon Linux and handle it appropriately. Currently, it doesn't recognize the OS.
indeed Amazon Linux AMI is slightly different from CentOS/RHEL maybe they can use some of Amazon Linux AMI's unique identifiers like
/etc/image-id and/or sudo alternatives --set python /usr/bin/python2.7 if these files exist
if /usr/bin/python2.7 exists, but Amazon AMI uses python 2.6 default and uses alternatives to set python version as either /usr/bin/python2.6 or /usr/bin/python2.7 so to set to python 2.7 default sudo alternatives --set python /usr/bin/python2.7
might need to submit an issue under the fedora/redhat/centos label at https://github.com/letsencrypt/letsencrypt/labels/fedora%20%2F%20redhat%20%2F%20CentOS
looks like there's one at https://github.com/letsencrypt/letsencrypt/issues/1458 and https://github.com/letsencrypt/letsencrypt/pull/1465