Hi!
I have an app that resizes images and finds faces on them and I can’t mix them in one function so I need multiple handlers for one event. But i’m getting such an error:
An error occurred: S3BucketImagethumbnailerbucket - Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.
when trying to deploy following config:
functions:
thumbnailer:
handler: thumbnailer.thumbnailer
events:
- s3:
bucket: image-thumbnailer-bucket
event: s3:ObjectCreated:*
rules:
- prefix: file-
face_finder:
handler: face_finder.face_finder
events:
- s3:
bucket: image-thumbnailer-bucket
event: s3:ObjectCreated:*
rules:
- prefix: file-
Is it possible(if so, how?) to process the same file in 2 parallel lambdas?
Thanks