cli: support --import-existing-resources
flag in cdk diff
#32790
Labels
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the feature
Now that cdk deploy supports
--import-existing-resources
flag (#32676), cdk diff should support it as well.Use Case
I want to know which resources are imported before deployment by just executing
cdk diff
.Proposed Solution
Users should be able to just run
cdk diff --import-existing-resources
, and get a table of resources that will be imported.CDK diff already supports displaying imported resources, so I guess all we need is to add a flag when calling
createChangeset
API here:aws-cdk/packages/aws-cdk/lib/api/util/cloudformation.ts
Lines 469 to 482 in bbdd42c
Just like here:
aws-cdk/packages/aws-cdk/lib/api/deploy-stack.ts
Lines 541 to 550 in bbdd42c
Other Information
Currently it is possible to review the changeset before an actual deployment as described here, but it is not very handy.
aws-cdk/packages/aws-cdk/README.md
Lines 415 to 420 in 3a37256
Acknowledgements
CDK version used
2.174.1
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: