In this video, we will create and deploy a Lambda function and use it to fetch items from DynamoDB.
Here are the steps we will follow:
1️⃣ Step 1: Create a DynamoDB Table and store some data.
2️⃣ Step 2: Create a Lambda function to fetch items from DynamoDB Table.
3️⃣ Step 3: Create a REST API to invoke the Lambda function through API.
📕 Resources
https://dynobase.dev/dynamodb-nodejs/
https://aws.amazon.com/sdk-for-javascript/
🌟Contents of this video 🌟
0:00 - Introduction
2:38 - Step1: Create a DynamoDB Table
3:29 - What is Partition Key and Sort key for DynamoDB Table
06:08 - Add some dummy data to the DynamoDB Table
09:33 - Make sure you are in the correct region
10:19 - Create a Lambda function
13:00 - Write code for Lambda function to fetch an item from DynamoDB Table
15:44 - What is DocumentClient
19:15 - Create API Endpoint to invoke the Lamba function
26:05 - Lambda function to fetch all items from Table
27:46 - Resources
🎓 Topics covered include:
✅ Lambda Function
✅ API Gateway
✅ Rest API
✅ DynamoDB