jolly-lifeguard-22556
10/08/2018, 3:21 PMpulumi up
on a js/ts project using cloud.HttpServer does it just zip up your local node_modules folder and upload to Lambda? I've tried all kinds of combinations of how I actually build the sharp module. I'm running Ubuntu locally so I think that it should be compatible with Lambda anyways but also tried using docker builds as described here: http://sharp.pixelplumbing.com/en/stable/install/#aws-lambdawhite-balloon-205
node_modules
is uploaded as part of the Lambda.
That does mean that if you are using native Node modules, you’ll need to install Node modules in a sufficiently compatible Linux environment - ideally an Amazon Linux docker image.jolly-lifeguard-22556
10/08/2018, 3:28 PMwhite-balloon-205
jolly-lifeguard-22556
10/08/2018, 3:51 PMmodule initialization error: Error
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/task/node_modules/sharp/lib/constructor.js:10:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
white-balloon-205
lemon-spoon-91807
10/08/2018, 4:22 PM