Skip to content

feat: display and force-delete TerminationProtection stacks with -f flag#582

Merged
go-to-k merged 6 commits intomainfrom
stack-termination-protected
Mar 14, 2026
Merged

feat: display and force-delete TerminationProtection stacks with -f flag#582
go-to-k merged 6 commits intomainfrom
stack-termination-protected

Conversation

@go-to-k
Copy link
Copy Markdown
Owner

@go-to-k go-to-k commented Mar 14, 2026

Summary

Closes #493

  • Show TerminationProtection (TP) stacks with * prefix marker in -i mode when -f is specified; prompt for confirmation, then disable TP and delete
  • In -s mode with -f, prompt for confirmation, then disable TP and delete
  • Without -f, maintain existing behavior: hide TP stacks in -i mode, return TerminationProtectionError in -s mode
  • Add DisableTerminationProtection client method using UpdateTerminationProtection API
  • Propagate forceMode through OperatorFactoryCloudFormationStackOperator → nested stacks
  • Add Aurora DBCluster to testdata_deletion_protection CDK stack
  • Add -t/--no-tp flag to testdata deploy.go for toggling stack TerminationProtection

- Add DisableTerminationProtection client method using UpdateTerminationProtection API
- Add forceMode to OperatorFactory and CloudFormationStackOperator for nested stack propagation
- In -i mode with -f: show TP stacks with "* " prefix marker in selection list
- In -i mode without -f: hide TP stacks (existing behavior)
- In -s mode with -f: disable TP and proceed with deletion after confirmation prompt
- In -s mode without -f: return TerminationProtectionError (existing behavior)
- Add confirmation prompt before disabling TerminationProtection
- Add Aurora DBCluster to testdata_deletion_protection CDK stack
- Add -t/--no-tp flag to testdata deploy.go for toggling stack TerminationProtection
- Update README with TerminationProtection documentation
@go-to-k go-to-k merged commit 5c07196 into main Mar 14, 2026
2 checks passed
@go-to-k go-to-k deleted the stack-termination-protected branch March 14, 2026 17:56
This was referenced Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Display termination protected stacks in -i and delete them forcibly with -f

1 participant