Skip to content
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

Cloudfront layers #31

Open
pontusab opened this issue Apr 21, 2020 · 2 comments
Open

Cloudfront layers #31

pontusab opened this issue Apr 21, 2020 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@pontusab
Copy link

Have you this up and running on Lambda@edge with Layers?

I get the error

com.amazonaws.services.cloudfront.model.InvalidLambdaFunctionAssociationException: The function cannot have a layer. 
@Wintus Wintus added the question Further information is requested label Dec 12, 2020
@Wintus
Copy link
Owner

Wintus commented Dec 12, 2020

@pontusab, Thank you for pointing it out, and you're right.

According to the doc, layers don't work:

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-requirements-limits.html#lambda-requirements-lambda-function-configuration

Lambda functions with AWS Lambda layers are not supported.

Obviously, I didn't try them out, and I'll fix that.

@Wintus Wintus self-assigned this Dec 12, 2020
@Wintus Wintus added the bug Something isn't working label Dec 12, 2020
@mordka
Copy link

mordka commented Mar 2, 2021

How come this repo works if layers are not supported on lambda on edge? how did you resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants