Static website

AWS Lambda function will play the role of the backbone of our web application. We also need a cosmetic frontend too to be deployed along with the Lambda function and there is a serverless framework plugin available that can perform this task with ease. That plugin is serverless-finch. This plugin will upload static assets of our web application into AWS s3. 

Let's look at how it works. To use this plugin, we need to first install it and then configure it into our serverless.yml file:

$ npm install --save serverless-finch

So once the plugin is installed, we first need to create a distribution folder that, by default, would be client/dist, which is also configurable through a custom tag. So, all our static content will reside ...

Get DevOps for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.