Introducing AWS CDK Refactor (Preview)
Share
Services
AWS Cloud Development Kit (CDK) CLI now enables safe infrastructure refactoring through the new 'cdk refactor' command in preview. This feature allows developers to rename constructs, move resources between stacks, and reorganize CDK applications while preserving the state of deployed resources. By leveraging [AWS CloudFormation's refactor capabilities](https://aws.amazon.com/about-aws/whats-new/2025/02/reshape-aws-cloudformation-stack-refactoring/) with automated mapping computation, CDK Refactor eliminates the risk of unintended resource replacement during code restructuring.
Previously, infrastructure as code maintenance often requires reorganizing resources and improving code structure, but these changes traditionally risked replacing existing resources due to logical ID changes. With the CDK Refactor feature, developers can confidently implement architectural improvements like breaking down monolithic stacks, introducing inheritance patterns, or upgrading to higher-level constructs without complex migration procedures or risking downtime of stateful resources. This allows teams to continuously evolve their infrastructure code while maintaining the stability of their production environments. The AWS CDK Refactor feature is available in all AWS Regions where the AWS CDK is supported. For more information and a walkthrough of the feature, check out the [blog post](https://aws.amazon.com/blogs/devops/aws-cloud-development-kit-cdk-launches-refactor/) and the [documentation](https://docs.aws.amazon.com/cdk/v2/guide/refactor.html#%5Fget%5Fstarted%5Fwith%5Fcdk%5Frefactoring). You can read more about the [AWS CDK here](https://docs.aws.amazon.com/cdk/v2/guide/home.html).
What else is happening at Amazon Web Services?
AWS IoT SiteWise now supports retraining of anomaly detection models
about 24 hours ago
Services
Share
Amazon IVS now supports private ingest via interface VPC endpoints
about 24 hours ago
Services
Share
Read update
Services
Share
Read update
Services
Share