mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
14 lines
456 B
JavaScript
14 lines
456 B
JavaScript
'use strict';
|
|
|
|
module.exports.hello = (event, context, callback) => {
|
|
process.stdout.write(event.Records[0].eventSource);
|
|
process.stdout.write(event.Records[0].eventName);
|
|
callback(null, { message: 'Hello from S3!', event });
|
|
};
|
|
|
|
module.exports.world = (event, context, callback) => {
|
|
process.stdout.write(event.Records[0].eventSource);
|
|
process.stdout.write(event.Records[0].eventName);
|
|
callback(null, { message: 'Hello from S3!', event });
|
|
};
|