You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."
#12054
Closed
4 tasks done
aryakrishn opened this issue
Jul 6, 2023
· 4 comments
I have searched existing issues, it hasn't been reported yet
Issue description
Getting error on deploying the code.
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.
The run time is set to nodejs18.x as in the attached serverless.yml format.
This error is happening when I add cognitoUserPool event to the function. Without it deployment works.
Serverless Error ----------------------------------------
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. "
@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.
Hi, I'm using a old version of serverless framework (1.67.0) and I don't wanna upgrade right now to get the fix (because of migration efforts from v1 to v3). Could anyone please help me how to fix this issue in my case with my current version itself?
Here is the error log from serverless ServerlessError: An error occurred: CustomDashresourceDashapigwDashcwDashroleLambdaFunction - 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. (Service: Lambda, Status Code: 400, Request ID: 2b959d10-63f7-46f4-9970-478ae23f02da)" (RequestToken: 3304965f-8771-b869-a8c6-2d2751fa3deb, HandlerErrorCode: InvalidRequest).
replace let key = 'CustomDashresourceDashexistingDashs3LambdaFunction' with the function that fails for you CustomDashresourceDashapigwDashcwDashroleLambdaFunction
Are you certain it's a bug?
Is the issue caused by a plugin?
Are you using the latest v3 release?
Is there an existing issue for this?
Issue description
Getting error on deploying the code.
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.
The run time is set to nodejs18.x as in the attached serverless.yml format.
This error is happening when I add cognitoUserPool event to the function. Without it deployment works.
Service configuration (serverless.yml) content
Command name and used flags
serverless deploy
Command output
Serverless Error ---------------------------------------- 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. "
Environment information
The text was updated successfully, but these errors were encountered: