Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

[python] CDK Deploy fails when adding Table viewer due to 'nodejs12.x no longer supported' #1083

Closed
dmorand17 opened this issue Jun 23, 2023 · 1 comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@dmorand17
Copy link

Describe the bug

This issue is related to the issue reported for typescript but for python. CDK Deploy fails on this step: https://cdkworkshop.com/30-python/50-table-viewer/500-deploy.html.

Expected Behavior

Expected CDK deploy to succeed

Current Behavior

Error is thrown when deploying via cdk deploy

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

Perform the CDK steps for python up through https://cdkworkshop.com/30-python/50-table-viewer/500-deploy.html

Possible Solution

I was able to work around this issue by using the following in requirements.txt

aws-cdk-lib==2.60.0
constructs>=10.0.0,<11.0.0
cdk-dynamo-table-view==0.2.474

Additional Information/Context

No response

CDK CLI Version

2.83.1

Section

No response

Browser

No response

Language

No response

@dmorand17 dmorand17 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 23, 2023
@indrora indrora closed this as completed Aug 1, 2023
@github-actions
Copy link

github-actions bot commented Aug 1, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants