From 6e004dcc9d70ad7d0d0a1d62df59ff7370ad1ba0 Mon Sep 17 00:00:00 2001 From: Suho Park Date: Fri, 18 Aug 2023 18:18:14 +0900 Subject: [PATCH] feat: debug logging --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2c0fb79..7bfeaed 100644 --- a/src/index.js +++ b/src/index.js @@ -10,6 +10,7 @@ const S3 = new AWS.S3({ const BUCKET = 'BUCKET_NAME'; exports.handler = async (event, context, callback) => { + console.log(`event: ${JSON.stringify(event.Records[0])}`); if (BUCKET === 'BUCKET' + '_' + 'NAME') { console.error(`bucket name is not initialize`); return callback(null, response); @@ -105,4 +106,4 @@ exports.handler = async (event, context, callback) => { } ]; return callback(null, response); -}; \ No newline at end of file +};