github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/lambda/node/func.js (about) 1 'use strict'; 2 3 console.log('Loading function'); 4 5 exports.handler = (event, context, callback) => { 6 //console.log('Received event:', JSON.stringify(event, null, 2)); 7 console.log('value1 =', event.key1); 8 console.log('value2 =', event.key2); 9 console.log('value3 =', event.key3); 10 callback(null, event.key1); // Echo back the first key value 11 //callback('Something went wrong'); 12 };