go-to-k/delstack

[Feature] Do not display stacks with delete protection

Closed this issue · 3 comments

Do not display stacks with delete protection in the interactive mode.

The type of []types.Stack for Stacks in DescribeStacksOutput, has the EnableTerminationProtection.

But DescribeStacks did not return EnableTerminationProtection when not passing a stackname for input.

However, calling the describe-stack API for every return values slows down the processing considerably.

I checked with AWS CLI today and found that even DescribeStacks, which does not specify the stack name, returns EnableTerminationProtection.
However, DescribeStacks does not have a StackStatusFilter in the input object like ListStacks, so all StackStatus stacks (including StackStatusDeleteComplete and xxInProgress) are received. Therefore, there may be performance concerns.

Perhaps the performance is not so bad because DescribeStacks does not return deleted items.