In my Serverless YAML file I defined a lambda function with multiple S3 events from different buckets, already existing, such as below
functions:
my-lambda:
handler: ...
name: my-lambda
description: 'Fetcher'
environment:
env_host: aws
events:
- s3:
bucket: bucket1
existing: true
- s3:
bucket: bucket2
existing: true
The command “serverless deploy” fails with below text:
Only one S3 Bucket can be configured per function. In “my-lambda" you're attempting to configure "bucket1" and "bucket2" at the same time.
Is it possible to configure one lambda with multiple s3 buckets in Serverless?