AWS Cloud Development Kit (AWS CDK) v2 is now generally available
Share
Services
The [AWS Cloud Development Kit (AWS CDK)](/cdk/) v2 for JavaScript, TypeScript, Java, Python, .NET and Go (preview) is now generally available in a single package, making it easier for you to use the CDK and stay up-to-date with new versions as we evolve it going forwards. AWS CDK v2 consolidates the [AWS Construct Library](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-construct-library.html) into a single package called aws-cdk-lib, and eliminates the need to download individual packages for each AWS service used. If you write your own CDK construct libraries, you only need to take a minimum dependency on this single package and let library consumers choose which exact AWS CDK version to use.
AWS CDK v2 only includes stable APIs, which comply with Semantic Versioning (semver), so you can confidently update to new minor versions. The CDK follows the “release early, release often” philosophy to encourage community participation, and we will continue deliver new features via experimental APIs for your feedback. However, going forward, experimental modules will be distributed separately from aws-cdk-lib, versioned clearly to indicate their pre-release status, and will only be merged into aws-cdk-lib when mature and stable.
In addition to simplified packing, the CDK includes developer productivity improvements such as a [CDK API Reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-construct-library.html) refresh with code snippets throughout, [CDK Watch](https://docs.aws.amazon.com/cdk/v2/guide/cli.html#cli-deploy) for faster inner-loop development iterations on the application code (AWS Lambda handler code, Amazon ECS tasks, and AWS Step Function state machines) in your CDK project. You can also [preserve successfully provisioned resources](/about-aws/whats-new/2021/08/aws-cloudformation-troubleshoot-errors/) by [disabling automatic stack rollbacks](https://github.com/aws/aws-cdk/blob/master/packages/aws-cdk/README.md#disabling-rollback), further reducing deployment and iteration time. To find issues earlier in your infrastructure code development cycle, you can use the new [assertions library](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.assertions-readme.html) to run automated unit tests in any CDK-supported language.
[Upgrading to AWS CDK v2](https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-v2.html), for most projects, can be accomplished with a one-time, safe re-bootstrapping of your AWS accounts and “import“ statement changes. To learn more, refer to the following resources:
* Read "[How customer feedback shaped the AWS Cloud Development Kit version 2](https://aws.amazon.com/blogs/developer/how-customer-feedback-shaped-the-aws-cloud-development-kit-version-2/)" for more details
* Learn about [Migrating to CDK v2 in the CDK Developer Guide](https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-v2.html)
* Get started with the AWS CDK in all supported languages by taking [CDK Workshop](https://cdkworkshop.com/)
* Checkout the new code snippets throughout the [API Reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-construct-library.html)
* Find useful constructs published by AWS, partners and the community in [Construct Hub](https://constructs.dev/)
* Connect with the community in the [cdk.dev](https://cdk.dev/) Slack workspace
* Follow our [Contribution Guide](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) to learn how to contribute fixes and features to the CDK
What else is happening at Amazon Web Services?
Read update
Services
Share
Read update
Services
Share
Read update
Services
Share
Read update
Services
Share
Read update
Services
Share