Time for nodejs upgrade
za opened this issue · comments
Hi there,
I am getting this ERROR when applying terraform on module-1:
aws_lambda_function.react_lambda_app: Creating...
╷
│ Error: error creating Lambda Function (1): InvalidParameterValueException: The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions.
│ {
│ RespMetadata: {
│ StatusCode: 400,
│ RequestID: "<snip>"
│ },
│ Message_: "The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions.",
│ Type: "User"
│ }
| with aws_lambda_function.react_lambda_app,
│ on main.tf line 23, in resource "aws_lambda_function" "react_lambda_app":
│ 23: resource "aws_lambda_function" "react_lambda_app" {
Out of curiosity, simply switching to nodejs20 will solve this issue?
I update nodejs14 to nodejs20 but still having an issue with deploying it.
but still having an issue with deploying it.
@LifeTimeScriptKiddie what's the issue?
This issue has been fixed by upgrading the nodejs runtime to 18.x, the application has been tested for all functionality with the upgraded nodejs version.