Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
AWS Lambda Quick Start Guide

You're reading from   AWS Lambda Quick Start Guide Learn how to build and deploy serverless applications on AWS

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789340198
Length 184 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Markus Klems Markus Klems
Author Profile Icon Markus Klems
Markus Klems
Arrow right icon
View More author details
Toc

Creating a stateful serverless backend with DynamoDB

By now, you will know how to create a stateless web application. Now we are going to add a database to our backend. For this purpose, we will create a DynamoDB database table and then use the DynamoDB node.js client to create, read, update, and delete items. We will then add this functionality to our little blog application.

So let's get started.

Sign in to the AWS Management Console (the location I have chosen in our example is Frankfurt) and open the DynamoDB dashboard. Since we don't have a DynamoDB table yet, As a service offering DynamoDB is the database. Hence, we don't need to manage the database server on our own. You can use the web dashboard to create tables by clicking on the Create Table button and going through the wizard. However, before that, we will need to use the serverless framework to programmatically...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime