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 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 SQS Processor Lambda function.
Configure an SQS trigger so that when a new mesage is placed in the Synchronous SQS queue the Lambda function will be triggered.
Add a Lambda layer to the Lambda function in order to include the appropriate dependencies.