awslabs / aws-solutions-constructs

The AWS Solutions Constructs Library is an open-source extension of the AWS Cloud Development Kit (AWS CDK) that provides multi-service, well-architected patterns for quickly defining solutions
https://docs.aws.amazon.com/solutions/latest/constructs/
Apache License 2.0
1.25k stars 249 forks source link

aws-cognito-apigateway-lambda: leverage aws-lambda-nodejs #978

Open mdesousa opened 1 year ago

mdesousa commented 1 year ago

hi, these constructs are very helpful!

however, i am running into issues with my project because i cannot find an easy way to bundle my nodejs monorepo project. the lambda function that gets deployed is missing all the dependencies. it would be great if you could offer an option to leverage aws-cdk-lib/aws-lambda-nodejs, which leverages esbuild and handles all the bundling. thanks.

biffgaut commented 1 year ago

Thanks - glad these are helping! We'll take a look at your request.

mdesousa commented 1 year ago

hi wondering if there's been any progress on this? i ended up forking the project and replacing the lambda in a couple of files (lambda-helper.ts and cognitoToApiGatewayToLambda.ts)... was pretty straight forward and worked without issues.

it would be nice to have it in the package, thanks