Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
AWS Lambda Quick Start Guide

You're reading from   AWS Lambda Quick Start Guide Learn how to build and deploy serverless applications on AWS

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789340198
Length 184 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Markus Klems Markus Klems
Author Profile Icon Markus Klems
Markus Klems
Arrow right icon
View More author details
Toc

Deploying a serverless frontend on CloudFront

We are going to take a look at deploying our serverless application frontend to Amazon S3. Then we will deploy our frontend to edge locations on CloudFront. Last but not least, we will benchmark the latency of our frontend.

So let's get started!

Create an S3 bucket named sls-frontend in the S3 dashboard on the AWS Management Console. To upload data to the bucket, click on the Upload button and drag your local web directory into the bucket:

As you can see from the previous screenshot, once the files are uploaded, we need to specify that our bucket is used for static website hosting, so we enable website hosting, set it as an index HTML document, and click on Save:

We also need to get some permissions so that our website will be accessible from the internet and other users will be able to access it. We specify that S3:GetObject...

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 €18.99/month. Cancel anytime