I have setup a S3 event on my bucket that triggers a lambda to resize images. So every time a file is placed in bucket S3, the lambda function is called, an event with information from the created file will be sent to the lambda function.
Here is an example sample of how to trigger:
next:
Here's an example code lambda nodejs to do this:
exports.handler = (event, context, callback) => {
var lastCreatedFile = event.Records[0].s3.object.key;
console.log(lastCreatedFile);
};
But my requirements is to trigger 2 lambda on one S3 event (upload object)- one image resize and another to store images meta data back to RDS.
But currently the S3 event doesn't support multiple lambda trigger. I saw an implementation that uses SNS and then send to multiple lambdas but I don't want to use that coz in that case I need to change my current architecture.
So let me know or show some other implementations or suggestions.

