Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 14 Support #63

Open
spencermize opened this issue Feb 24, 2021 · 8 comments
Open

Node 14 Support #63

spencermize opened this issue Feb 24, 2021 · 8 comments

Comments

@spencermize
Copy link

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:

Runtime: 'nodejs12.x',
, but I'm not sure if it's on the roadmap.

Thanks!

spencermize added a commit to spencermize/cover-earth-back that referenced this issue Feb 24, 2021
serverless doesn't support node 14 yet (serverless-components/express#63)
@jyounus
Copy link

jyounus commented Jun 15, 2021

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

@rrooding
Copy link

I agree

@luizramirez
Copy link

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

@vinnyt123
Copy link

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

@luizramirez
Copy link

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

@luizramirez
Copy link

@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.

@vinnyt123
Copy link

Thanks @luizramirez, I'll give that a try

@aoyama-val
Copy link

@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 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants