Hello,
I’m using an image resize lambda function following this blog from aws, I’m able to configure the example manualy in AWS and with the lambda@edge function setup with a memorySize of 512MB or more of memory and a timeout greater than 5 seconds. This is required for me, otherwise the image resize function would timeout almost every time.
Setting the function with serverless, the hardcoded limit of 128MB memorySize and 5 seconds timeout it’s throwing and error:
Error: “originResponseFunction” memorySize is greater than 128 which is not supported by Lambda@Edge functions
I haven’t been able to find any official documentation for AWS that this limits are no longer true, but in practice I’m able to set them up to values greater than this limits for origin-response functions.
Is there a way to modify this limits and or disabling validate()
for an specific cloudFront event? If not would a pull request be welcome to disable the memorySize and timeout validations for an specific cloudFront event?
My serverless version details are:
sls --version
Framework Core: 1.54.0
Plugin: 3.1.2
SDK: 2.1.2
Components Core: 1.1.1
Components CLI: 1.2.3