aws-samples / amazon-textract-serverless-large-scale-document-processing

Process documents at scale using Amazon Textract
Apache License 2.0
331 stars 165 forks source link

Node 8.10 not supported anymore #9

Closed keherri closed 4 years ago

keherri commented 4 years ago

The runtime parameter of nodejs8.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions.

Nodejs version needs to be changed to 12.12.6

package-lock.json

"@types/node": {
      "version": "12.12.6",
      "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.6.tgz",
      "integrity": "sha512-FjsYUPzEJdGXjwKqSpE0/9QEh6kzhTAeObA54rn6j3rR4C/mzpI9L0KNfoeASSPMMdxIsoJuCLDWcM/rVjIsSA==",
      "dev": true
    },

package.json

"@types/node": "12.12.6",

Run in textract-pipeline

grep -ilr 'nodejs8.10' * | xargs -I@ sed -i '' 's/nodejs8.10/nodejs12.x/g' @
Sharonfun101 commented 4 years ago

We are still seeing this issue report after running the above workaround and verified that the package.json no longer contains node 8.10. Hence the stack failed. Any insights why?

darwaishx commented 4 years ago

Solution has been updated with current version of CDK to fix this issue.