Create Task Processor Lambda

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 4 steps to create the Lambda functionality:

  1. 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.

  2. Create the Task Processor Lambda function.

  3. Configure an DynamoDB trigger so that when a new task/row is crated at the Documents DynamoDB table the Lambda function will be triggered.

  4. Add a Lambda layer to the Lambda function in order to include the appropriate dependencies.

See below which part of the synchronous architecture you will create:

Task processor