In this recipe, we will add data items to our DynamoDB table from Lambda following the general steps outlined in the earlier recipe Using the DynamoDB SDK from Lambda. We have already seen how to work with data in DynamoDB from the AWS CLI in an earlier recipe.
Adding data items from Lambda
Getting ready
You need an active AWS account. You need to follow the section Getting started in the recipes Your first AWS Lambda and Your first Lambda with AWS CLI from Chapter 1, Getting Started with Serverless Computing on AWS to set up Java, Maven, the parent project, serverless-cookbook-parent-aws-java, and AWS CLI, and may also read other notes there including code usage guidelines, S3 bucket creation, and notes for Windows users...