Bootstrapping S3/CloudFront with LetsEncrypt
Posted by Admin • Thursday, August 5. 2021 • Category: DevOps, LinuxLet's assume that you want to do the following:
- Host the contents of your S3 bucket via YOUR.DOMAIN.COM
- Use CloudFront
- Use a LetsEncrypt cert
"What's the problem?", you may ask. There are plenty of tutorials for this stuff. Not exactly. A CloudFront Distribution will not let you add a CNAME until you have an SSL cert, but you can't use certbot to auto-provision an SSL cert until you are hosting from your domain.
Solution
The easiest solution is to initially generate your SSL cert manually. You can then use something like certbot-s3front to auto-renew.
Details
Continue reading "Bootstrapping S3/CloudFront with LetsEncrypt"