Previous: Application Load Balancer SSL Previously we have seen how to setup an EC-2 instance, run a simple web server and expose it at your domain using Route53. This allows us to access our web server using HTTP at port 80. If you haven't read about it, please refer to the previous notes: Deploying EC2 instance on AWS with Terraform Provision DNS records with Terraform The natural next step in that setup is to use HTTPS (HTTP + SSL) and enforce access at port 443 instead. We will do it here by adding Cloudfront and ACM to our terraform setup. Let's dive in. Adding Cloudfront distribution I will confess that it is not super easy to add CloudFront + ACM for HTTPS for a beginner, so I will break down the steps from simplest cloud architecture to most complicated one hopefully clarifying the steps and the reason for taking them. First step to add an HTTPS using Cloudfront is naturally to create a Cloudfront distribution.…