aws-samples / aws-cross-account-cicd-pipeline

Example of how to use CDK to create a CodePipeline CI/CD pipeline, and how to configure it to deploy resources on different AWS Accounts.
MIT No Attribution
111 stars 37 forks source link

This need to be updated with CDK v2 #23

Open yangliunewyork opened 2 years ago

yangliunewyork commented 2 years ago

The code example here are using CDK v1. Now CDK v2 is out and CDK v1 is in maintenance mode.

rafaeldasilva commented 1 year 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