I’m working with an AWS serverless application that includes multiple Python Lambdas. Whenever I execute ‘serverless deploy,’ in addition to the Python Lambda functions defined in the serverless.yml file, an extra Node.js Lambda called ‘<my_app_name>-prod-custom-resource-event-bridge’ is automatically generated, using Node.js 12.x as its runtime.
My question is: How can I modify the Node.js version for this Lambda?
Make sure you’re using the latest version of the Serverless Framework (currently 3.3.0). Older versions create custom resources with Node.js 12.x, while newer versions use Node.js 14.x by default.