CloudFront distribution

In addition to using CloudFront to add SSL termination on the website, CloudFront is mostly used as a Content Delivery Network (CDN) to store static assets (such as HTML pages, images, fonts, CSS, and JavaScript) in multiple edge locations around the world, which results in faster downloads and within less response time.

That being said, navigate to CloudFront, and then create a new web distribution. Set the S3 website URL in the Origin Domain Name field and leave the other fields as the default. You may want to redirect the HTTP traffic to HTTPS:

Next, select the SSL certificate we created in the Certificate Manager ...

Get Hands-On Serverless Applications with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.