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
AWS Custom Resource Lambda still using NodeJS 14.x #11359
Comments
@ashley-jisc PR is welcome! |
I think I have encountered something similar! I posted a discussion here #11364 But in my case the default version is nodejs12.x and I couldn't find anywhere to change. AWS is gonna stop nodejs12.x support so this becomes a bug for me. What is your serverless version?
|
They updated from nodejs12.x to nodejs14.x - I talk about it in my original post, and link the issue... ???? |
Maybe this issue is resolved by #11367. But, if there is no special reason, I think it would be better that this Lambda also refers "runtime" in serverless.yml as well as other functions. This may let users to avoid upgrading serverless version due to this hardcorded runtime version. If you agree, I'll try to work on it. @medikoo |
@ALOHACREPES345 I think it's safer to keep it fixed, to avoid unexpected compatibility issues |
@medikoo before
after
But I may have overlooked compatibility point of view, so I would follow your opinion. Thank you. |
Is there an existing issue for this?
Use case description
This is effectively the same as #10432 with the exception that nodejs 14 is not EOL.
The custom resource lambda (*-custom-resource-apigw-cw-role) created automatically via serverless has a hardcoded runtime of "nodejs14.x":
serverless/lib/plugins/aws/customResources/index.js
When building our product with Serverless, we wish to have parity across our services when it comes to runtimes. We've upgraded to nodejs 16 but we still have a bunch of custom-resource-apigw-cw-role lambdas stuck at nodejs 14.
Proposed solution (optional)
The text was updated successfully, but these errors were encountered: