Here are the files described in:
https://medium.com/edataconsulting/how-to-get-a-ssl-certificate-running-in-aws-elastic-beanstalk-using-certbot-6daa9baa3997
Thank you so much to Marcos Escandell for writing everything up! 🙏🙏🙏
The article works! But the formatting (eg. indentations) got lost in the config snippets which are mandatory to make elastic beanstalk understand your configuration.
So I put a working version of everything here in this repo. Enjoy! Free SSL on EB for everyone! 😀
If you are uploading from Windows, you will get this cryptic error (Stderr:/usr/bin/env: bash: No such file or directory
):
It's because Windows uses different "End of Line" (EOL) characters than unix does.
You can easily fix the problem in Notepad++ for the \.platform\hooks\postdeploy\00_get_certificate.sh
file: