This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Description
I have followed the instructions and when I use your lambda.zip file it seems to work. But when I update the config to change the image sizes, it fails. I have used the npm install and ./bundle.sh to create the zip. I then tear down the CloudFormation and the Lambda and start again. It creates the new lambda correction but it doesn't work. When I look at the log file I get:
START RequestId: b1fd35d3-4391-11e7-9a6e-e345aeb705c6 Version: $LATEST
Unable to import module 'index': Error
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/var/task/node_modules/gm/lib/convenience/morph.js:7:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
END RequestId: b1fd35d3-4391-11e7-9a6e-e345aeb705c6