express icon indicating copy to clipboard operation
express copied to clipboard

Node 14 Support

Open spencermize opened this issue 3 years ago • 8 comments

Hello!

I'm attempting to utilize Node 14 on AWS Lambda, but I can't seem to get the component to respect my settings. It looks like the settings might be able to be added here: https://github.com/serverless-components/express/blob/81d9840355efa45b4ecf46a1ea09b3eba181e8a9/src/utils.js#L404, but I'm not sure if it's on the roadmap.

Thanks!

spencermize avatar Feb 24 '21 17:02 spencermize

It would be nice if there were a new version of the express component with this update.

jyounus avatar Jun 15 '21 19:06 jyounus

I agree

rrooding avatar Jun 21 '21 08:06 rrooding

we need this to be merged ha! AWS is ending support for nodejs12 @serverless-ci

luizramirez avatar Oct 07 '22 19:10 luizramirez

Did anyone find a workaround to get the function to run using newer NodeJS runtime? As @luizramirez said, AWS will not allow you to update a node12 Lambda starting December 14th 2022 and this component will be totally unusable

vinnyt123 avatar Oct 15 '22 23:10 vinnyt123

I found a solution @vinnyt123 . Will share it later when close to a computer

luizramirez avatar Oct 15 '22 23:10 luizramirez

@vinnyt123 you can create your own component based on the serverless express component. You can then publish your component and use it in your pipeline.

luizramirez avatar Oct 17 '22 00:10 luizramirez

Thanks @luizramirez, I'll give that a try

vinnyt123 avatar Oct 17 '22 20:10 vinnyt123

@luizramirez Can you explain in more detail how you do that?

I tried:

  1. clone [email protected]:serverless-components/express.git
  2. Edit serverless.component.yml and change name, author and org
  3. npm run publish and got
17s › Serverless › User: arn:aws:sts::486128539022:assumed-role/sp-registry-resources-prod-serv-RegistryLambdaRole-1JVOZLOJ7BXAH/sp-registry-api-function-prod-serverlessinc is not authorized to perform: lambda:TagResource on resource: arn:aws:lambda:us-east-1:486128539022:function:sp-component-express-node18_3_0_1 because no identity-based policy allows the lambda:TagResource action 

aoyama-val avatar Aug 09 '23 09:08 aoyama-val