I went ahead and upgraded all the packages and examples to CDK 2.8.0, which was the latest version in use here.
A couple things to look at:
CDK 2 requires Node.js > 14.x, so the use of process.env in the examples was problematic. I created some checks which throw errors if variables are undefined in most cases, requiring the environment variables to be set to use. I don't know if you have something better in mind.
Take a closer look at the snapshot differences in the cdk-codepipeline-* packages, because some KMS policies changed.
Please review the changes in NotificationRule from cdk-developer-tools-notification package. I had to refactor the validation hook to use this.node.addValidation. I hope that still works as expected.
I went ahead and upgraded all the packages and examples to CDK 2.8.0, which was the latest version in use here.
A couple things to look at:
process.env
in the examples was problematic. I created some checks which throw errors if variables are undefined in most cases, requiring the environment variables to be set to use. I don't know if you have something better in mind.cdk-codepipeline-*
packages, because some KMS policies changed.NotificationRule
fromcdk-developer-tools-notification
package. I had to refactor the validation hook to usethis.node.addValidation
. I hope that still works as expected.