Questions tagged «serverless»

1
无服务器:通过调用方法触发并忘记无法正常工作
我有一个无服务器的 lambda函数,在其中我想触发(调用)一个方法而忘记它 我用这种方式做 // myFunction1 const params = { FunctionName: "myLambdaPath-myFunction2", InvocationType: "Event", Payload: JSON.stringify(body), }; console.log('invoking lambda function2'); // Able to log this line lambda.invoke(params, function(err, data) { if (err) { console.error(err, err.stack); } else { console.log(data); } }); // my function2 handler myFunction2 = (event) => { console.log('does …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.