Posted On: Dec 2, 2021
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 refresh with code snippets throughout, CDK Watch 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 by disabling automatic stack rollbacks, further reducing deployment and iteration time. To find issues earlier in your infrastructure code development cycle, you can use the new assertions library to run automated unit tests in any CDK-supported language.
Upgrading to AWS CDK v2, 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" for more details
- Learn about Migrating to CDK v2 in the CDK Developer Guide
- Get started with the AWS CDK in all supported languages by taking CDK Workshop
- Checkout the new code snippets throughout the API Reference
- Find useful constructs published by AWS, partners and the community in Construct Hub
- Connect with the community in the cdk.dev Slack workspace
- Follow our Contribution Guide to learn how to contribute fixes and features to the CDK