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

Building a Serverless backend with Python

In the previous section, we created a simple Lambda function using the serverless framework and Python. Now we will create a more complex service similar to the one that we created using Node.js, but using Python. In this section, we will refactor the Lambda function from our previous section. We will add DynamoDB for data persistence, create the other CRUD operations, and test our deployed service using Postman.

Go back to the Atom Editor where we last left off. Let's refactor the handler function a little bit. For example, we're going to replace the body with a short message, Created new article.

Let's print out the event that the Lambda function has been invoked with. Instead of naming the function ...

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