该hello-world
蓝图不适用于API Gateway触发器。要使基本调用正常工作,请将lambda函数的代码更改为:
exports.handler = async (event, context) => {
console.log('Received event:', JSON.stringify(event, null, 2));
var response = {
statusCode: 200,
body: 'Hello, World!'
};
return response;
};
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句