Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Web Applications

You're reading from  Building Serverless Web Applications

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781787126473
Pages 354 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Diego Zanon Diego Zanon
Profile icon Diego Zanon
Toc

Setting up CloudFront


CloudFront serves static files as a Content Delivery Network (CDN). Having file copies next to your users reduces latency and improves your perceived website speed. Another feature, which we will discuss later, is support for HTTPS requests.

In the next sections, we will create a CloudFront distribution and adjust the Route 53 settings to use CloudFront instead of the S3 bucket.

Creating a distribution

A CloudFront distribution is what makes it possible to associate a DNS configuration (Route 53) with CloudFront to distribute static content. A distribution needs an origin server to know where the files are stored. In our case, the origin will be the S3 bucket that was previously configured.

Let's perform the following steps to create a CloudFront distribution:

  1. Browse the CloudFront Management Console at https://console.aws.amazon.com/cloudfront and click on Create Distribution:
  1. The next step is to select the distribution type. For our website, select Get Started under the...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}