Created
July 3, 2019 22:05
-
-
Save mlevkovsky/aa3236ae01c76cc18e5a7524a6b08fbc to your computer and use it in GitHub Desktop.
controller file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Callback, Context, Handler, S3Event} from 'aws-lambda'; | |
export const s3Handler: Handler = async (event: S3Event, context: Context, cb: Callback) => { | |
console.log('the event that triggered is ', event); | |
cb(null, {message: 'S3 Handler execution completed'}); | |
} catch (error) { | |
cb(error, {message: 'S3 Handler execution failed'}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment