Processor Test

4.3.2 Processor Test

Objective

Validate the data processing flow from SQS to the Lambda Processor.

Input Data

Test data is simulated as log messages from SQS, including fields such as appId, level, message, and timestamp.

Implementation Steps

After configuring all required resources, a test event is created to simulate input data from SQS.

  1. Create a test event named TextSendingMessage and input the data into the Event JSON section.

Create event

Paste the JSON data into the Event JSON section.

Add JSON
Add JSON

  1. Execute the Lambda function to process the data.

Lambda run

  1. Verify the processing results
  • Log data is stored in S3.
    The S3 results confirm that the log data has been successfully stored after processing.

S3 result
S3 result

  • Email notifications are successfully sent.

Email result

Workflow Description

  • Messages are sent to SQS
  • Lambda Processor retrieves the message, processes it, and deletes it in the sqs.
  • Notifications are sent if there is an error log.
  • Data is processed and:
    • Stored in S3
    • Stored in DynamoDB
    • Notifications are sent via SNS

Conclusion

The log processing system operates correctly, ensuring that data is processed, stored, and notifications are delivered successfully.