In this recipe, we will create tables from Lambda following the general steps outlined in the Using the DynamoDB SDK from Lambda recipe. We had already seen creating tables from the CLI and using a CloudFormation template in an earlier recipe. Tables are generally created in the real world using CloudFormation templates.
Creating tables 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...