Skip to content

Commit 2cf217d

Browse files
author
EC2 Default User
committed
Update SAM template with adding AWS Lambda Layer
1 parent b233ecb commit 2cf217d

17 files changed

+39
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
node_modules
12
package-lock.json
File renamed without changes.

index.js renamed to lambda/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
let {createCanvas} = require("canvas");
22

3-
function hello(event, context, callback) {
3+
exports.handler = function(event, context, callback) {
44
let canvas = createCanvas(200, 200),
55
ctx = canvas.getContext('2d');
66

@@ -19,5 +19,3 @@ function hello(event, context, callback) {
1919

2020
callback(null, '<img src="' + canvas.toDataURL() + '" />');
2121
}
22-
23-
module.exports = {hello};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)