awslabs / aws-iot-certificate-vending-machine

The CVM allows a device to apply for its own certificate and installation.
Apache License 2.0
83 stars 16 forks source link

Cloudformation stack get error because of nodes 6.x #9

Open gitblessk opened 5 years ago

gitblessk commented 5 years ago

Hello,

Can anyone update the stack?

I tried to run the stack, it get error because lambda is nodejs 6.x, can anyone update the stack to meet the new version 10.x?

Thanks

samhstein commented 5 years ago

worked with updating the template, also make sure to run in n. virginia region for access to the pubz bucket for the lamba function.

"Runtime": "nodejs8.10",
gitblessk commented 5 years ago

worked with updating the template, also make sure to run in n. virginia region for access to the pubz bucket for the lamba function.

"Runtime": "nodejs8.10",

OK & Thx.

davidsteed commented 5 years ago

I tried nodejs10.x and this did not work got "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module 'app'", "stack": [ "Runtime.ImportModuleError: Error: Cannot find module 'app'", " at _loadUserApp (/var/runtime/UserFunction.js:100:13)", " at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)", " at Object. (/var/runtime/index.js:36:30)", " at Module._compile (internal/modules/cjs/loader.js:776:30)", " at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)", " at Module.load (internal/modules/cjs/loader.js:653:32)", " at tryModuleLoad (internal/modules/cjs/loader.js:593:12)", " at Function.Module._load (internal/modules/cjs/loader.js:585:3)", " at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)", " at startup (internal/bootstrap/node.js:283:19)" ] }