How to do it...

I will list and explain the general steps for developing DynamoDB operations from Lambda using the SDK in this section:

  1. Create a Maven project for the Lambda with the common parent and the DynamoDB Java SDK dependency

We follow the same project structure for all our Lambda projects:

In the POM file, define the parent project as serverless-cookbook-parent-aws-java. This parent project defines the common properties and inherits from another parent with basic Java project dependencies and configurations such as lombok, checkstyle configurations, and so on:

<parent>    <groupId>tech.heartin.books.serverlesscookbook</groupId>    <

Get Serverless Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.