目标
使用Lambda和API gateway搭建一个HTTP API,返回文本信息
步骤
在Lambda中创建nodejs函数
函数名 helloWorld
函数体:
exports.handler = function(event, context) {
context.done(null, {message:'Hello World!'});
};
使用Lambda和API gateway搭建一个HTTP API,返回文本信息
函数名 helloWorld
函数体:
exports.handler = function(event, context) {
context.done(null, {message:'Hello World!'});
};