aws-samples / aws-samples/serverless-woocommerce-workshop

node version need upgrade due to Lambda Funtion reject nodejs version 12.x

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
35
Forks
11
PR merge metrics
No merged PRs in 30d

Description

When trying to deploy the workshop environment, the CFM fail the deployment with error: (The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions). This may due to CDK version is old which conflict with latest Lambda Function requirement. Raising this issue to track the upgrade of CDK to catch up the latest Lambda Function requirement.

Error message as below:

_11:12:31 AM | CREATE_FAILED | AWS::Lambda::Function | AWS679f53fac002430cb0da5b7982bd2287
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 creat
ing or updating functions. (Service: Lambda, Status Code: 400, Request ID: b48830aa-4c39-4e60-b23b-cbc50b5c45b5)" (RequestToken: b218d981-aabc-a481-1ed3-4f72b27de1e3, HandlerErrorCode: InvalidRequest)
11:12:34 AM | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | WooCommerceStack
The following resource(s) failed to create: [vpcPublicSubnet1NATGateway9C16659E, certificateCertificateRequestorFunctionServiceRoleDefaultPolicy8ED55FEE, vpcPrivateSubnet2RouteTable7280F23E, fileSystemEf
sMountTarget17116B811, fileSystemEfsMountTarget278447471, AWS679f53fac002430cb0da5b7982bd22872D164C4C, vpcPublicSubnet1RouteTable48A2DF9B, vpcPublicSubnet2RouteTableEB40D4CB, vpcPrivateSubnet1RouteTableB
41A48CC]. Rollback requested by user.
11:12:34 AM | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | WooCommerceStack
The following resource(s) failed to create: [vpcPublicSubnet1NATGateway9C16659E, certificateCertificateRequestorFunctionServiceRoleDefaultPolicy8ED55FEE, vpcPrivateSubnet2RouteTable7280F23E, fileSystemEf
sMountTarget17116B811, fileSystemEfsMountTarget278447471, AWS679f53fac002430cb0da5b7982bd22872D164C4C, vpcPublicSubnet1RouteTable48A2DF9B, vpcPublicSubnet2RouteTableEB40D4CB, vpcPrivateSubnet1RouteTableB
41A48CC]. Rollback requested by user._

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.