In the Using custom domain names with CloudFront recipe, when we ran the URL in a browser using HTTPS, it showed a Not Secure message. In this recipe, we will associate an SSL certificate with our CloudFormation distribution so that we can access the URL through HTTPS. We will also configure automatically the redirection of any calls with an http prefix to a corresponding URL with an https prefix.
Using HTTPS with a CloudFront domain
Getting ready
We can refer to Creating SSL certificates with ACM recipe in Chapter 9, Serverless Architecture Patterns and Practices, to obtain an ACM SSL certificate. We can also refer to the previous recipes in this chapter for details on the steps related to S3, CloudFront, and Route 53 that...