cloudcomponents / cdk-constructs

A collection of higher-level reusable cdk constructs
MIT License
623 stars 101 forks source link

Upgrade to aws cdk v2 #142

Closed hupe1980 closed 2 years ago

hupe1980 commented 2 years ago

AWS Cloud Development Kit (AWS CDK) v2 is now generally available:

We have to update to use v2:

mbp commented 2 years ago

Do you need any help with this?

hupe1980 commented 2 years ago

@mbp Any help is welcome. So far I've only created the branch for the update.

mrgum commented 2 years ago

I'm looking at doing cdk-chatops and cdk-developer-tools-notifications. One question.

Do the versions of the packages (in package.json) all need upping to reflect the difference in using CDK v2?

How do we update all these while

looking at https://github.com/cdklabs/cdk-nag/tree/v2-main they have are upping the versions so users request ^2.0.0 for CDK v2 and ^1.0.0 for CDK v1

so should I take @cloudcomponents/cdk-chatops version 1.50.0 and make a 2.50.0 that is the same as 1.50.0 but using CDK v2?

hupe1980 commented 2 years ago

You don't have to worry about the version in package.json. When the migration is complete I will publish a new major release.

caevv commented 2 years ago

@hupe1980 can you create the new major versions (as rc)? Apparently, you have already migrated the package I need @cloudcomponents/cdk-cloudfront-authorization and I'd like to use it already please.

victorsibanda commented 2 years ago

Hi @hupe1980, What is left to complete the migration to CDK_V2, would be happy to help with anything particular.

hupe1980 commented 2 years ago

@victorsibanda You can see the progress in the cdk2 branch and in #142. Any help is welcome.