CLI: add flag when running garbage collector to ignore non-authorized stacks #32322
Open
1 of 2 tasks
Labels
@aws-cdk/core
Related to core CDK functionality
closing-soon
This issue will automatically close in 4 days unless further comments are made.
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
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the feature
add some kind of flag to the cdk gc command (for example --skip-unauthorized-stacks) so that when checking the stacks (GetTemplateSummary) it ignores those that the user does not have access instead of failing the command
Use Case
I was very excited for this new feature, but when I tried running it, I got the following error:
(newlines added to improve readability)
Where is a stack used my my company to do initial setup of AWS accounts.
Proposed Solution
Instead of automatically failing, have some way to ignore stacks in error. Right now I know of no way to skip it
Other Information
No response
Acknowledgements
CDK version used
2.171.1
Environment details (OS name and version, etc.)
macOS Sonoma 14.7
The text was updated successfully, but these errors were encountered: