Created
April 24, 2018 09:44
-
-
Save chathurawidanage/8877035cc0e031e44cc5ab7a1f1feaac to your computer and use it in GitHub Desktop.
Proxy Lambda Invocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
let lambda = require(`/tmp/${projectName}/${event.lambda}`); | |
lambda.handler(event.testEvent, context, callback); | |
} catch (e) { | |
console.error(e); | |
callback("Runtime Error Occurred", null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment