Open yangliunewyork opened 2 years ago
There is not possible to use the aws-cdk version specified on doc anymore. Got the following error:
$ cdk ls (node:3136) NOTE: The AWS SDK for JavaScript (v2) will be put into maintenance mode in 2023.
Please migrate your code to use AWS SDK for JavaScript (v3). For more information, check the migration guide at https://a.co/7PzMCcy (Use
node --trace-warnings ...
to show where the warning was created)
Newer version of CDK is available [2.64.0] Upgrade recommended
A newer version of the CDK CLI (>= 21.0.0) is necessary to interact with this app
to fix I updated it
npm install -g aws-cdk@2.64.0 --force
aws-cdk --version
The code example here are using CDK v1. Now CDK v2 is out and CDK v1 is in maintenance mode.