I am trying to create a lambda that gets triggered every time a new file is added to Different Existing s3 buckets, what should the setting be? I am using serverless version 1.49 and below is an example serverless.yml;
lambdafunction:
name: Total_word_count
description: Function to check for word count
handler: word_count.lambda_handler
events:
- s3:
bucket: s3_bucket_english
event: s3:ObjectCreated:*
existing: true
rules:
- prefix: data/
- s3:
bucket: s3_bucket_spanish
event: s3:ObjectCreated:*
existing: true
rules:
- prefix: data/
Serverless Error: “Failed to create resource. Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.”