Open spencermize opened 3 years ago
It would be nice if there were a new version of the express component with this update.
I agree
we need this to be merged ha! AWS is ending support for nodejs12 @serverless-ci
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
I found a solution @vinnyt123 . Will share it later when close to a computer
@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.
Thanks @luizramirez, I'll give that a try
@luizramirez Can you explain in more detail how you do that?
I tried:
git@github.com:serverless-components/express.git
serverless.component.yml
and change name, author and orgnpm 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
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!