How to change nodejs version for auto generated custom resources?

Hi everyone,
I have a AWS serverless app containing several python lambdas. But every time when I run ‘serverless deploy’, apart from my python lambda funtions specified in serverless.yml, an additional nodejs lambda named ‘<my_app_name>-prod-custom-resource-event-bridge’ will also be automatically created using nodejs 12.x as runtime.
Question, how can I change the nodejs version for it?
Thanks a lot!

These are the plugins I used:

  • serverless-python-requirements
  • serverless-deployment-bucket
  • serverless-plugin-resource-tagging

Ensure to rely on the latest version of the Framework. It uses node14.x runtime for custom resourcdes

1 Like