1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
2
Check the Lambda function logs in CloudWatch and look for error messages. If the error is due to sharp module, then there might be a compatibility issue with the operating system used to build the package. One way to get around this issue is to create a Lambda Layer for the sharp module and then reference that in your Lambda function.
Here's another tutorial you can follow to create a Lambda Layer for sharp: https://javascript.plainenglish.io/image-manipulation-with-sharp-aws-lambda-functions-layers-and-claudia-js-876d3dadcdb4
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
Sharp module incompatibility was the case, I develop on windows I simply installed linux version of sharp running npm install --arch=x64 --platform=linux sharp instead of npm install sharp And It worked Thank you