add skeleton for AWS lambda Node implementation

This commit is contained in:
Brandon Liu
2022-10-19 17:19:31 +08:00
parent d31a87f479
commit 23af3d61cf
6 changed files with 815 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import "../../../js";
import { Context, APIGatewayProxyResult, APIGatewayEvent } from "aws-lambda";
export const handler = async (
event: APIGatewayEvent,
context: Context
): Promise<APIGatewayProxyResult> => {
const response = {
statusCode: 200,
body: JSON.stringify("Hello from Lambda!"),
};
return response;
};