Lambda sample function
-
console.log('Loading function'); export const handler = async (event, context) => { //console.log('Received event:', JSON.stringify(event, null, 2)); console.log('value1 =', event.key1); console.log('value2 =', event.key2); console.log('value3 =', event.key3); return { message: "hello world", post_body:JSON.stringify(event.body), event: JSON.stringify(event) }; };