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

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

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