aws-samples/aws-cdk-intro-workshop

cdk-dynamo-table-viewer@0.2.46 fails deployment

Closed this issue · 4 comments

Describe the bug

This is due to the library having node 12 which is now not supported.

Expected Behavior

Deployment succeeds

Current Behavior

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. 

Reproduction Steps

Follow steps here: https://cdkworkshop.com/20-typescript/50-table-viewer.html

Possible Solution

Upgrade to version 0.2.486 or above.

PR which fixed node version in library.

Additional Information/Context

No response

CDK CLI Version

2.92.0 (build bf62e55)

Section

Using Construct Libraries

Browser

Firefox

Language

Typescript

Confirmed this.
"Installing the library" instructions specify a verision of cdk-dynamo-table-viewer that is no longer supported (cdk-dynamo-table-viewer@0.2.46) and results in cdk deploy error & rollback.
https://cdkworkshop.com/20-typescript/50-table-viewer/200-install.html
Fix it by specifying the latest cdk-dynamo-table-viewer version from https://www.npmjs.com/package/cdk-dynamo-table-viewer?activeTab=versions

@vinayak-kukreja Thanks for the PR contribution. We will get this reviewed and merged.

nit: Would you like to update your PR to refer the current latest version cdk-dynamo-table-viewer@0.2.488?

@vinayak-kukreja There is another issue #1231 which mentions the version issue for other languages. I will create consolidated PR for updating version of cdk-dynamo-table-view for all languages.

⚠️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.