Error: Configuration is ambiguously defined

When deploying my serverless project to AWS i get the following error:

An error occurred: S3BucketMyBucketName - Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type

I have two different lambdas that use the same S3 Bucket Object Created event - because i want to run things in parallel with this newly created object.
Is this a restriction of the Serverless Framework?
Or is this generally not possible on AWS?

That’s a limitation of AWS. You can read more about it in the AWS Docs here

You could consider trying a Messaging Fanout Pattern for Serverless Architectures Using Amazon SNS

Buggy talks about it in a similar thread HERE

Hope it helps.

1 Like