How it works...
In this recipe, we created a CloudFront distribution layer over a private S3 bucket to access the S3 bucket securely using HTTPS. We configured this to redirect all HTTP requests into HTTPS requests. If we choose HTTP and HTTPS, both HTTP and HTTPS requests are allowed. If we choose Only HTTPS, all HTTP requests will be discarded.
In the CloudFront distribution with a CloudFront default domain section of this recipe, we used the default certificate provided by CloudFront (*.cloudfront.com) for SSL. This certificate allows us to use HTTPS without the need for creating a certificate. In the CloudFront distribution with a custom domain and ACM certificate section of this recipe, we specified a wildcard domain name (*.heartin.cloud ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access