Skip to content

Commit cf2e7f3

Browse files
committed
remind myself how to write a lambda function ... #128
1 parent 99697b3 commit cf2e7f3

File tree

4 files changed

+277
-48
lines changed

4 files changed

+277
-48
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ const debug = require("./lambda/debug.js");
44
exports.handler = function handler (event, context, callback) {
55
debug(event);
66
debug(context);
7+
console.log('hello')
78
return callback(null, event);
89
}

lambda/debug.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
require('env2')('.env');
3-
const save = require('../lib/s3.js').save;
3+
const save = require('./s3.js').save;
44

55
/**
66
* `debug` is used to debug SNS notification events.

0 commit comments

Comments
 (0)