Test table: Adding sample data to the BlogPosts
table helps verify that the table works properly before integrating with Lambda functions.
Test query: Sample data allows testing that the Lambda function getPosts
returns the desired results.
Understand data structure: Helps familiarize yourself with how data is stored in DynamoDB.
Go to AWS Management Console and go to the Amazon DynamoDB service.
In the Tables list, select the BlogPosts
table.
Select the Explore table items tab.
Select Create item.
Add the following properties:
postId
(String): 1
title
(String): Sample Post
content
(String): This is a sample blog post.
createdAt
(String): 2025-08-20T12:00:00Z
getPosts
returns the correct result.postId
, title
, content
, createdAt
) match the expected structure in the Lambda functions.postId
is unique.BlogPosts
table, ready to test with Lambda.