serverless/serverless

AWS Custom Resource Lambda still using NodeJS 14.x

Open

#11.359 aperta il 26 ago 2022

Vedi su GitHub
 (6 commenti) (1 reazione) (0 assegnatari)JavaScript (5734 fork)batch import
cat/lambdagood first issuehelp wanted

Metriche repository

Star
 (46.915 star)
Metriche merge PR
 (Merge medio 1g 15h) (34 PR mergiate in 30 g)

Descrizione

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

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)

  • Upgrade it to node16
  • Allow a CLI flag to override it on deployment

Guida contributor