sudo yum update
sudo yum install -y git nginx libffi-devel puppet libffi-devel puppet httpd24 jq
sudo /etc/init.d/nginx start
sudo chkconfig nginx on
- Add AWS user as
example.iam_policy.json
- Configure nginx as
etc/nginx/nginx.conf
and restart nginx
- Edit
elb_update_cert.sh
to modify __VALIABLES__
as yours
- Execute commands below and confirm everything fine
- Add cron job as
etc/cron.d/elb_update_cert
git clone https://github.com/letsencrypt/letsencrypt /home/ec2-user/letsencrypt
sudo aws configure --profile elb_update_cert
sudo bash elb_update_cert.sh
cf. http://qiita.com/hidekuro/items/482520f220a305dc147b