-
Notifications
You must be signed in to change notification settings - Fork 60
feat(refactor): ability to exclude selected resources from refactoring #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…' into otaviom/refactor-stack-filtering
| * logical IDs, that is, the logical IDs of the resources | ||
| * as they would be after the refactor. | ||
| */ | ||
| skipFile?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm looking for a better name. If anyone has any suggestions, let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For toolkit-lib, this should be an array. We can make the read from file a CLI feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm looking for a better name. If anyone has any suggestions, let me know.
exclude?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm going with exclude.
# Conflicts: # packages/@aws-cdk/tmp-toolkit-helpers/src/api/refactoring/index.ts # packages/@aws-cdk/toolkit-lib/lib/toolkit/toolkit.ts # packages/@aws-cdk/toolkit-lib/test/actions/refactor.test.ts # packages/aws-cdk/lib/cli/cli-config.ts # packages/aws-cdk/lib/cli/convert-to-user-input.ts # packages/aws-cdk/lib/cli/parse-command-line-arguments.ts # packages/aws-cdk/lib/cli/user-input.ts # packages/aws-cdk/test/api/refactoring/refactoring.test.ts
packages/@aws-cdk/tmp-toolkit-helpers/src/api/refactoring/cloudformation.ts
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #421 +/- ##
==========================================
+ Coverage 79.15% 79.18% +0.03%
==========================================
Files 54 54
Lines 6889 6895 +6
Branches 772 773 +1
==========================================
+ Hits 5453 5460 +7
+ Misses 1418 1417 -1
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
# Conflicts: # packages/@aws-cdk/toolkit-lib/lib/api/refactoring/skip.ts # packages/@aws-cdk/toolkit-lib/lib/toolkit/toolkit.ts # packages/aws-cdk/test/api/refactoring/refactoring.test.ts
Allow the user to select resources to be skipped for refactoring. There are two ways to do this:
aws:cdk:skip-refactor = truemetadata to each resource to be skipped, in the cloud assembly manifest."<stack name>.<logical ID>"or a construct path.The main abstraction is the
SkipListinterface, used by the mapping detection algorithm to query for mappings that should be excluded.Closes #412, #379
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license