arabold / serverless-sentry-lib

MIT License
32 stars 15 forks source link

Serverless-sentry-lib Too Large for Lambda@Edge #13

Closed AhiVT closed 5 years ago

AhiVT commented 5 years ago

The issue is that the function code size for Lambda@Edge (CloudFront Lambda functions) can not exceed 1048576 bytes (which as I'm writing this, is equal to ~1.05MB). Serverless-sentry-lib is approximately 10MB, (in my case 11855943 bytes or 11.85MB). Is it at all possible for serverless-sentry-lib to be compressed to under the 1.05MB threshold, or is there an alternative to use for Lambda@Edge functions?

AhiVT commented 5 years ago

The large package size was caused by an upstream bug in serverless.