I have the following architecture:
S3 ---> S3 Notification ---> SQS ---> Lambda
Sometimes, I'm getting the following error message from the Lambda (of course the times are different):
"errorType": "Runtime.UnhandledPromiseRejection"
"errorMessage": "InvalidSignatureException: Signature expired: 20221230T132433Z is now earlier than 20221230T132603Z (20221230T133103Z - 5 min.)"
I have a retry policy in the SQS, so when the error occurs, the message returns to the SQS, and the Lambda process it again. When it processes it again, the same message, it succeeds and is processed successfully.
Any idea why?