O'Reilly logo

AWS Lambda Quick Start Guide by Markus Klems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required