I have an resize lambda, triggered by a S3 objectCreated event, which I was hoping I could pass some parameters through the serverless.yml file to resize a bunch of times into different sizes. I’m not sure if this is possible right now using only one handler.
Is it possible to have a triggered lambda with some default parameter values such as ‘width = 1024, height = 768’
Currently my code is as follows:
- prefix: original/
- suffix: .jpg
I was hoping to have a few of these exact blocks but with different sizes being passed.