Securing S3 using CloudFront and TLS
In this recipe, we will learn how to secure an S3 bucket by adding a CloudFront distribution layer. We will enable SSL/TLS on the CloudFront distribution to allow HTTPS traffic. Initially, we will utilize the default CloudFront certificate (*.cloudfront.net), and then proceed to configure the CloudFront distribution with a custom domain, using an ACM certificate.
Getting ready
We need the following to successfully complete this recipe.
- A working AWS account, 
awsseccb-sandbox-1, and a userawsseccbadmin1, as described in the Technical requirements section. - We need an S3 bucket with a file called 
index.html. The content of the file should be<h1> Cloudericks Web Server </h1>. We can create an S3 bucket by referring to Technical requirements section of Chapter 2. - For the CloudFront distribution with a custom domain and ACM certificate section of this recipe, we need to create an ACM certificate, following the Creating...