Skip to Main Content
AWS Lambda Quick Start Guide
book

AWS Lambda Quick Start Guide

by Markus Klems
June 2018
Intermediate to advanced content levelIntermediate to advanced
184 pages
3h 28m
English
Packt Publishing
Content preview from AWS Lambda Quick Start Guide

Changing the file structure

Go back to the blog-app directory. The first thing we need to do before restructuring the code is to create a subdirectory named articles, as shown in the following screenshot:

Now, move all the Lambda function handlers that are related to articles to the articles file. Once this is done, you will have the createArticle function in the handler.js file:

However, there are different ways in which you can structure your Lambda function handlers and determine how many Lambda functions you want to deploy per service. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering AWS Lambda

Mastering AWS Lambda

Yohan Wadia, Udita Gupta

Publisher Resources

ISBN: 9781789340198Supplemental Content