Create SQS Processor Lambda

In this section you will create the Lambda function that will be triggered as soon as a new message is placed in the Synchronous SQS queue.

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 SQS Processor Lambda function.

  3. Configure an SQS trigger so that when a new mesage is placed in the Synchronous SQS queue 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:

SQS processor