DEV Community

Cover image for 5. HTTPS
jicoing
jicoing

Posted on • Edited on

5. HTTPS

After creating the AWS S3 static website it was time for securing the website for communication over the network using HTTPS. Because we don't want anybody spying on us.

Alt Text

ACM

I had to setup a certificate from ACM with the domain name www.komlalebu.com I registered from Route53.

Alt Text

Cloudfront

I had to setup the cloudfront distribution with requested custom SSL certificate, and also configure the alternate domain name

Alt Text

Then I had to configure the Cloudfront origin domain name to point to the S3 static URL endpoint. Paste everything excluding http://

Alt Text

S3 static website URL: http://blog.komlalebu.com.s3-website-us-east-1.amazonaws.com which we had previously configured.

Alt Text

Once it was done, I got my Cloudfront secure distribution URL.
Cloudfront Domain name: https://d1cs99***.cloudfront.net

Alt Text

Route53

I had to setup Route53 with an alias record with name www.komlalebu.com and the alias value pointing to the Cloudfront Domain name.
Alt Text

And it was done. The website is secure.

Alt Text

Top comments (0)