aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
4.97k stars 2.11k forks source link

Unable to deploy `typescript/cognito-api-lambda` example #880

Closed adstro closed 1 year ago

adstro commented 1 year ago

Describe the bug

I am unable to deploy the typescript/cognito-api-lambda example because it uses a deprecated version of the NodeJS runtime for it's Lambda.

Expected Behavior

cdk deploy should succeed.

Current Behavior

cdk deploy fails with the following error:

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

Reproduction Steps

Follow the instructions in typescript/cognito-api-lambda/README.md to build and deploy.

Possible Solution

Upgrade NodeJS runtime that is used for the Lambda

Additional Information/Context

No response

CDK CLI Version

2.87.0

Framework Version

No response

Node.js Version

v18.16.1

OS

MacOS

Language

Typescript

Language Version

No response

github-actions[bot] commented 1 year ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.