Error while deployment: The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions. The runtime used is nodejs18.x #12053
Replies: 1 comment
-
You must be using serverless <=2.72.2 (refer to serverless.yml and package.json) serverless provides a patch for this, but you need to upgrade to 2.72.4, and in case you can - upgrade to version 3 (3.330+) See 2.72.4 (2023-07-10) Pre-release AWS deprecated the node js v12 lambda runtime. This PR upgrades to node 16 Closes: #12054 @aryakrishn it is important to note this has been addressed in the most recent version of framework v3.330 but we have also applied the fix to v2.72.4 incase there is a reason you are unable to upgrade to v3. |
Beta Was this translation helpful? Give feedback.
-
When I included cognito user pool event to one of the functions as follows,
pool: ${env:COGNITO_POOL_NAME}
trigger: PostConfirmation
existing: true
forceDeploy: true
I am getting error on deployment. Without this event deployment is working.
The error is as follows,
An error occurred: CustomDashresourceDashexistingDashcupLambdaFunction - 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.
However the runtime value in serverless.yml is
runtime: nodejs18.x
What is the issue here?
Beta Was this translation helpful? Give feedback.
All reactions