-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum allowed size for functions #6
Comments
Changing the build script to worked so far :) but I had to manually copy some files to the .zip file that is required. |
What files did you need to manually copy? |
Hey @jonasgroendahl @loadfix , so the way I use this currently is via its counterpart terraform module, which pulls in the zip, and adds in the config necessary for the lambda@edge function to work. |
In my case I only had to add the
This seems to do the trick... Remember to remove the |
@guizy67 looks like I missed that as I use a different method to build the zip for release: https://github.com/nickshine/lambda-edge-azure-auth/blob/master/package.sh#L9-L20 For the released zip, you only have to add in your config.json, everything else should be good. I'll put in a fix for the build.js script though, thanks! |
For anyone else running into a build issue on Windows 10, here are the steps that worked for me:
Addendum: Installing zip CLI on Windows Top answer copy/paste: |
Update: I was able to get this Lambda function deployed but it never worked right for my setup; it gets stuck in a loop and eventually fails with a 403 or 500. In case anyone else is ending up at this point and scratching their head about what to do next, here's the approach that finally worked for me:
|
Hi,
com.amazonaws.services.cloudfront.model.InvalidLambdaFunctionAssociationException: The function code size is larger than the maximum allowed size for functions that are triggered by a CloudFront event
I am getting this error following this guide (Step 2.ii): https://github.com/Widen/cloudfront-auth/wiki/Manual-Deployment. It seems the lambda zip it creates when I run
./build.sh
is too large.I read up on the quotas, it seems like the 1MB is being exceeded for viewer requests: https://imgur.com/a/pSuzrFg
Did I do something wrong or is this normal? I'm trying to setup a lambda edge function with my cloudfront distribution to authenticate with Azure AD
The text was updated successfully, but these errors were encountered: