aws-samples / non-profit-blockchain

Builds a blockchain network and application to track donations to non-profit organizations, using Amazon Managed Blockchain
Apache License 2.0
374 stars 288 forks source link

Lambda in Part 6 fails to deploy as Node.Js version 10 is no longer supported #168

Open Doriordan2 opened 2 years ago

Doriordan2 commented 2 years ago

Parts 1 & 2 still work but when I then move on to Part 6, the cloud formation fails to complete due an error while creating the Lambda. This is being created with Node.Js version 10 which is no longer supported. I attempted to update the createLambda.sh file and the package.json files to version 14 but then during deployment it fails again due to "Pre-built binaries not found for grpc@1.24.2 and node@14.19.1". I have no idea where this specific version of grpc is being defined but it refuses to try another version. Instead it compiles it itself which takes ages and results in the S3 package being greater than 250MB which lambda does not support. Ultimately no matter what I do, it fails to create the lambda.

This Part 6 section needs its code updated to suport Node.js 14