1 Answers
2
Accepted Answer
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
answered 23 days ago
Relevant questions
Trigger lambda only on S3 object create, but not to trigger on override
Accepted Answerasked 5 months agocreate a gallery of video
asked 7 months agoS3 trigger to create thumbnail Tutorial doesn´t work, responds 202 but doesn´t do the job
Accepted Answerasked 23 days agoValues in SiteWise OPC UA Gateway doesn´t update
asked 6 months agoMythicalMisfits Tutorial Broken from Flask Update?
asked 2 years agoIs it possible to pass variables in a websocket $connect call?
Accepted Answerasked 2 years agoSecurity Group to allow canary monitoring
asked 3 years agoBuild an IOS Application Tutorial - Trigger Authentication at Run Time
asked 7 months agocreated credentials don´t work
asked 17 days agoInvalid Input: Encountered following errors in Artifacts: {s3://greengrass-tutorial/com.example.HelloWorld/1.1.0/helloWorld.zip = Specified artifact resource cannot be accessed}
Accepted Answerasked 5 months ago
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