This article shows you how to work read data stored in DynamoDB using a lambda function.

While creating a Lambda function make sure you assign the IAM Role for Lambda, which has the Policy of “AWSLambdaFullAccess” attached to it. Make sure the other required policies have been attached, like AWSLambdaExcute and AmazonDynamoDBFullAccess since we are working with DynamoDB.

In your database key values are important as you will use the same for scanning the database. Now for this example, I have created a fake DB with ID as my Primary partition key.

A snippet of my DynamoDB is given below…

Aishwarya Rao

Writer | Developer | Travelhead

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store