目標
使用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!'});
};