Hi all
What I am trying to achieve..
I am using amazons web services S3 bucket as a storage, which works fine. However I'm also trying to create a Lambda function that when a file it passed to storage on the S3 bucket that it first is ran through the Kraken.io API to compress the image size.
I have had a developer make me the script that will do this and work on Lambda in NodeJS.
Where im stuck is the actual setup in regards to image extensions, now in the lambda function you create a trigger and this is for now set as a .png , so when a png file is uploaded the lambda function should do its job and so on.
What i want to know from those who are familiar with the AWS and hopefully Lambda too is do you know if multi extensions can be added ?
I assume yes they can be added. You'll need to check AWS first to see what's available.
After reading some it would appear that a function trigger can only have 1 suffix. The good news is you can create multiple triggers for each suffix you would like to use.
Question
the images that are stored in the s3, are these served on my wesbite ?
I think you can control where they're stored. I don't see a setting where you can control if they're stored in multiple locations.