How use dynamoose in aws lambda function?

Viewed 637

Actually, I am new to AWS Lambda functions and Amazon DynamoDB, so I could not find a way to create a table with a Dynamoose schema and create CRUD operation with it.

I am familiar with mongoose and I read that Dynamoose is inspired by it.

So, can anybody tell me how to create CRUD operations in Lambda by using Dynamoose schema?

1 Answers

In the same way, you would create the CRUD operations without the lambda. The difference is that you create one crud operation per lambda function/API endpoint and that you need to create an appropriate lambda execution role. Also, you will need to bundle the dependencies with the function.

Related