The runtime parameter of nodejs12.x is no longer supported
FredericHeem opened this issue · comments
FredericH commented
Hi Danny,
With regard to the example openid-connect-github
, it has been used as an example in GruCloud. Someone reports a security issue due to a missing subclaim. Refer to this github issue for more information. Cheers.
FredericH commented
Sorry but it seems that the issue is from my side. However, while trying to deploy openid-connect-github, it fails due to the following error:
13:17:34 | CREATE_FAILED | AWS::Lambda::Function | CustomAWSCDKOpenId...derHandlerF2C543E0
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: d8a42768-af72-48a3-bd11-6175fc9bdbe0)" (RequestToken: f97e1997-3da1-a11f-745f-94cc
97e694b4, HandlerErrorCode: InvalidRequest)
Danny Steenman commented
I've updated the aws-cdk-lib package from 2.15.0 to 2.87.0 and the deploy works fine again:
Do you wish to deploy these changes (y/n)? y
GitHubOpenIDConnect1: deploying... [1/1]
GitHubOpenIDConnect1: creating CloudFormation changeset...
✅ GitHubOpenIDConnect1
✨ Deployment time: 73.2s
Stack ARN:
arn:aws:cloudformation:eu-central-1::stack/GitHubOpenIDConnect1/31c77090-1efc-11ee-938e-0618641501e8
✨ Total time: 78.15s
Please pull the latest commit from main.