Building a serverless application on AWS — Part 2: Create a DynamoDB table and store data

Maik Schmidt
Sep 21, 2018 · 5 min read

Prerequisites

Screenshot made out of an video linked at https://aws.amazon.com/dynamodb/features

Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability.

Example: “Hash Key” based primary key

1. Write operation

The write operation (put) for a “Hash Key” based primary key

2. Read operation

The read operation (get) for a “Hash Key” based primary key

3. AWS CloudFormation resource

AWS CloudFormation resource for a “Hash Key” based DynamoDB table

Example: “Hash and Range Key” based primary key

1. Write operation

The write operation (put) for a “Hash and Range Key” based primary key

2. Read operation

The read operation (query) for a “Hash and Range Key” based primary key

3. AWS CloudFormation resource

AWS CloudFormation resource for a “Hash and Range Key” based DynamoDB table

Let’s get back to work now…

Figure 1
Figure 2

Two last steps are missing

Figure 3

Figure 4

Thanks to Bogdan Melnychuk

Maik Schmidt

Written by

Full Stack Developer | AWS Enthusiast

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade