how to Write AWS lambda function
exports.fn = (event, context, callback) => {
console.log(event);
const age = event.age;
callback(null, age * 2);
};
how to Write AWS lambda function
exports.fn = (event, context, callback) => {
console.log(event);
const age = event.age;
callback(null, age * 2);
};
aws lambda tutorial
callback(); // It will return success, but no indication to the caller
callback(null); // It will return success, but no indication to the caller
callback(null, "success"); // It will return the success indication to the caller
callback(error); // It will return the error indication to the caller
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us