Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Web Applications

You're reading from   Building Serverless Web Applications Develop scalable web apps using the Serverless Framework on AWS

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787126473
Length 354 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Diego Zanon Diego Zanon
Author Profile Icon Diego Zanon
Diego Zanon
Arrow right icon
View More author details
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...

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 $19.99/month. Cancel anytime
Banner background image