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 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 and the documentation. You can read more about the AWS CDK here.
Categories: marketing:marchitecture/developer-tools,general:products/aws-cloud-development-kit
Source: Amazon Web Services
Latest Posts
- Durable Objects, Workers – New `us` jurisdiction for Durable Objects

- (Updated) Upcoming change: disabling Teams meeting recording expiration notification emails [MC1245635]
![(Updated) Upcoming change: disabling Teams meeting recording expiration notification emails [MC1245635] 3 pexels punttim 139764](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) Extending AI in SharePoint using custom skills [MC1269209]
![(Updated) Extending AI in SharePoint using custom skills [MC1269209] 4 pexels googledeepmind 18069694](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Microsoft OneNote: Multimodal recording in Copilot Notebooks on Windows [MC1405506]
![Microsoft OneNote: Multimodal recording in Copilot Notebooks on Windows [MC1405506] 5 pexels googledeepmind 25626583](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)


![(Updated) Upcoming change: disabling Teams meeting recording expiration notification emails [MC1245635] 3 pexels punttim 139764](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-punttim-139764-150x150.webp)
![(Updated) Extending AI in SharePoint using custom skills [MC1269209] 4 pexels googledeepmind 18069694](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-googledeepmind-18069694-150x150.webp)
![Microsoft OneNote: Multimodal recording in Copilot Notebooks on Windows [MC1405506] 5 pexels googledeepmind 25626583](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-googledeepmind-25626583-150x150.webp)
![(Updated) Microsoft Teams: Shorter meeting URLs [MC772556] 7 (Updated) Microsoft Teams: Shorter meeting URLs [MC772556]](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-mccutcheon-1148998-96x96.webp)