Invoke Lambda Function from one to another using Node JS
Aug 29, 2017 · 1 min read
I mentioned below code
lambda.invoke({
FunctionName: ‘(Another Lambda Funtion Name)’,
Payload: JSON.stringify({“key”:”value”}) // pass params
}, function(error, data) {
if (error) {
console.log(‘error’, error);
}
if(data.Payload){
console.log(data.Payload)
response = JSON.parse(data.Payload)
console.log(JSON.Stringify(response));
}
});
