Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying AWS Lambda Quick Start Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
AWS Lambda Quick Start Guide

AWS Lambda Quick Start Guide

By : Klems
5 (1)
close
close
AWS Lambda Quick Start Guide

AWS Lambda Quick Start Guide

5 (1)
By: Klems

Overview of this book

AWS Lambda is a part of AWS that lets you run your code without provisioning or managing servers. This enables you to deploy applications and backend services that operate with no upfront cost. This book gets you up to speed on how to build scalable systems and deploy serverless applications with AWS Lambda. The book starts with the fundamental concepts of AWS Lambda, and then teaches you how to combine your applications with other AWS services, such as AmazonAPI Gateway and DynamoDB. This book will also give a quick walk through on how to use the Serverless Framework to build larger applications that can structure code or autogenerate boilerplate code that can be used to get started quickly for increased productivity. Toward the end of the book, you will learn how to write, run, and test Lambda functions using Node.js, Java, Python, and C#.
Table of Contents (8 chapters)
close
close

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...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY