Different S3 buckets as events in lambda

Hi All

I want to add multiple different S3 buckets as events for lambda. I’m able to do it manually but unable to do the same using Serverless Framework. Getting below error -

“only one s3 bucket can be configured per function”

This is possible to do it manually. Can anyone share some snippet or blog to do it using Serverless Framework? TIA.

I don’t like having Lambdas triggered from S3 anyway. I prefer S3->SNS->SQS -> lambda. SQS gives you much better error handling with dead letter queues. You also get much better visibility. 9Apps Showbox Tutuapp