- Create IAM policy using
letsencrypt_challenge_route53.json
- Assign policy to EC2 role
- Install lego from https://go-acme.github.io/lego/
- Create file
renew_cert.sh
, e.g. in~/bin/
crontab -e
and paste the following line:
0 0 1 * * /path/to/renew_cert.sh