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!
1 Like
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
Getting
An error occurred: CustomDashresourceDasheventDashbridgeLambdaFunction - Resource handler returned message: "The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs18.x) while creating or updating functions.
due to this exact lambda.
The serverless I’m using:
Framework Core: 2.55.0 (local)
Plugin: 5.5.4
SDK: 4.3.2
Components: 3.18.2
Ohh, I didn’t notice the (local)
part of the version. Even though I had installed the latest serverless cli, the version on the package.json
was still 2.55.0
. Upgrading that to 3.3.0
resolves the issue