In summary, we did the following in this recipe:
- Created a Lambda function to perform the following:
- Retrieve multiple messages from an input queue
- Batch the messages and send it to an output queue
- Created the input and output queues
- Added data into the input queue
- Created required policies and attached them to the role
- Created the Lambda function specifying the role
- Invoked the Lambda with a payload as required by the input handler object (Request.java)
- Verified data was posted to the queue using the aws sqs receive-message command on the output queue