ignatz (2) [Avatar] Offline
Line 3 creates an error:
exports.handler = function(event, context, callback) => {

The area below shows the result returned by your function execution using the context methods. Learn more about returning results from your function.
  "errorMessage": "Unexpected token =>",
  "errorType": "SyntaxError",
  "stackTrace": [
    "Module._compile (module.js:373:25)",
    "Object.Module._extensions..js (module.js:416:10)",
    "Module.load (module.js:343:32)",
    "Function.Module._load (module.js:300:12)",
    "Module.require (module.js:353:17)",
    "require (internal/module.js:12:17)"

should be:
exports.handler = function(event, context, callback) {
Danilo Poccia (11) [Avatar] Offline
Thank you for your feedback, I adapted the code to the new AWS Lambda support for Node.js 4.3 and I introduced a typo.

You can either use what you suggest, or the new compact syntax for anonymous functions in ES6:

exports.handler = (event, context, callback) => {

I'll fix it as soon as possible for the next releases.

theoxylo (15) [Avatar] Offline
I vote for old school "function " (with a space):

exports.handler = function (event, context, callback) {

or even temp named:

exports.handler = function addTimestamp(event, context, callback) {

Thanks smilie