Skip to content

The function code size is larger than the maximum allowed size for functions that are triggered by a CloudFront event #47

@workflo

Description

@workflo

Hi there,

we are trying to get this example app running but are unable to deploy, because the resulting Lambda function is too large.

Resource handler returned message: "Invalid request provided: AWS::CloudFront::Distribution: The function code size is larger than the maximum allowed size for functions that are triggered by a CloudFront event: 1212049 Max allowed: 1048576 Function: arn:aws:lambda:us-east-1:xxxxxxxxxxx:function:yyyyyyyyyyyyyyyyyyyyyy-CloudFrontAuthFunction-wykPqdDXOu0C:1 (Service: CloudFront, Status Code: 400, Request ID: ...

image

We didn't touch the JS code nor the package.json file.

Can anyone reproduce this? What can we do?

Thanks in advance,
Florian.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions