Created
March 23, 2023 20:27
-
-
Save hendrixroa/6ad40722dfe8206152398d16a0be492d to your computer and use it in GitHub Desktop.
Basic lambda function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const logger = require('pino')(); | |
exports.handler = async (event, context) => { | |
context.callbackWaitsForEmptyEventLoop = false; | |
const dataEvent = JSON.stringify(event); | |
logger.info('Display data event: '+ dataEvent); | |
return context.succeed({ data: dataEvent }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment