I need to invoke aws lambda from another lambda asynchronously. i have a working code for synchronous calls.
exports.handler = (event, context, callback) =&g
Per the Lambda invoke() documentation, you will see that by default the Lambda function is invoked using the RequestResponse invocation type. To invoke the function asynchronously you need to specify the Event invocation type, like so:
lambda.invoke({
FunctionName: 'testLambda',
InvocationType: 'Event',
Payload: JSON.stringify(event, null, 2)
},function(err,data){});