You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a `refactor` command. For now, it only works in dry run mode
(`-dry-run` in the command line, or `dryRun: true` to the toolkit). It
computes the mappings based on the difference between the deployed
stacks and the cloud assembly stacks, and shows them in a table.
Example:
```
$ cdk refactor --dry-run --unstable=refactor
The following resources were moved or renamed:
┌───────────────────────┬────────────────────────────────────────┬───────────────────────────────────────┐
│ Resource Type │ Old Construct Path │ New Construct Path │
├───────────────────────┼────────────────────────────────────────┼───────────────────────────────────────┤
│ AWS::IAM::Role │ Consumer/Function/ServiceRole/Resource │ Consumer/NewName/ServiceRole/Resource │
├───────────────────────┼────────────────────────────────────────┼───────────────────────────────────────┤
│ AWS::Lambda::Function │ Consumer/Function/Resource │ Consumer/NewName/Resource │
└───────────────────────┴────────────────────────────────────────┴───────────────────────────────────────┘
```
Note that we are launching this feature under unstable mode, which
requires the user to acknowledge that by passing the
`--unstable=refactor` flag.
Closes#132,
#133,
#141,
#134 and
#135.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
In case it's not possible to establish a 1:1 mapping between resources, show the ambiguous pairs, in the following format:
The text was updated successfully, but these errors were encountered: