From the course: Learning Static Site Building with Hugo

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up Amazon CloudFront

Set up Amazon CloudFront

From the course: Learning Static Site Building with Hugo

Start my 1-month free trial

Set up Amazon CloudFront

- Amazon S3 will do a great job of hosting your static site files, but adding CloudFront will take your site a step further. CloudFront lets you bring your own domain name instead of using the long, ugly S3 bucket URL. CloudFront will take the files in your bucket and cache them in every region in the world as close as possible to your visitors. This means super-fast loading times for your site. CloudFront also makes it easy to add a certificate to enable HTTPS on your site. All you need to do is set up a CloudFront distribution for your S3 bucket. What I'll do is search for CloudFront in the services menu up here. And I want to open that up in a new tab. I'll leave the other tab open because we need to copy something from there a little bit later. In the CloudFront control panel I want to create a new distribution, and it'll be a web distribution. For the origin domain name, I want to copy that full S3 bucket URL and paste it there. So I'll go back to S3, copy this URL, and paste it…

Contents