In this section you will create the Lambda function that will be triggered as soon as a new task/row is iserted in the Documents DynamoDB table
We need an IAM Role. This relevant IAM Role has already been created using CloudFormation during the steps you followed at
2. Set up the project.
Create the Task Processor Lambda function.
Configure an DynamoDB trigger so that when a new task/row is crated at the Documents DynamoDB table the Lambda function will be triggered.
Add a Lambda layer to the Lambda function in order to include the appropriate dependencies.