@aws-cdk/aws-lambda-nodejs doesn't give useful error messages when builds fail.
See original GitHub issueWe’re looking at switching over from Serverless to CDK for deploying our lambdas to minimise size. One of the things that Serverless does that I don’t know how to do cleanly in CDK is excluding devDependencies
from the final built package that gets zipped / uploaded.
How do I go about configuring this behaviour in CDK?
This is a 📕 documentation issue
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
NPM package `pem` doesn't seem to work in AWS lambda ...
I launched an Amazon Linux 2 server, built OpenSSL on it, transferred the package to my local machine, and deployed it via Serverless....
Read more >AWS Lambda function errors in Node.js
This page describes how to view Lambda function invocation errors for the Node.js runtime using the Lambda console and the AWS CLI.
Read more >How We Debugged And Fixed 'EMFILE: too many files open ...
This article shows how we debugged and fixed an 'EMFILE: too many files open' error on AWS Lambda.
Read more >AWS Lambda Timeout Best Practices - Lumigo
Take charge of AWS Lambda timeouts and learn how to prevent timeout errors and service disruptions.
Read more >AWS CDK - One-Step S3 Websites with esbuild
I wrote previously about using aws-lambda-nodejs with esbuild to write ... so I'm just pulling an alpine image to give an error message....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jogold I went ahead and ran
npm i -g parcel-bundler
to work around that error.Now I get:
Not sure what to do to figure out what the Error actually is.
Yes I know, the point was to see if this is a parcel error and what kind of error. In this case the out-dir doesn’t matter.
The
lambdaNodejs.NodejsFunction
builds in a subfolder ofsrc/restart-service/.build
. Again just a test here to see if it’s parcel related. Looks like it’s not?