DRichathon Thank you for your reply. So I need a machine running Linux to re-compile the script to make the Lamda function work? I am using macOS right now, but I didn't run npm install. I just downloaded the zip file and upload it to Lamda.Reply·Article·Mar 21, 2022·On-the-fly image resizing with AWS Lambda, S3 & CloudFront
DStefan Olaru Thank you for the quick reply. I got a new error: darwin-x64' binaries cannot be used on the 'linux-x64' platform. Please remove the 'node_modules/sharp' directory and run 'npm install' on the 'linux-x64' platform. Do you know how to fix it?Reply·Article·Feb 22, 2022·On-the-fly image resizing with AWS Lambda, S3 & CloudFront
DOh seems I can visit via the CloudFront URL, but I got this error from the code in .zip file: index.handler is undefined or not exportedReply·Article·Feb 22, 2022·On-the-fly image resizing with AWS Lambda, S3 & CloudFront
DHi Stefan, I followed your instruction but when I visited the URL to resize image, it just showed AccessDenied. The URL for the original image still works.Comment·Article·Feb 22, 2022·On-the-fly image resizing with AWS Lambda, S3 & CloudFront