Skip to content
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

aws - cfn - add force delete to auto-disable termination protection #5638

Merged
merged 7 commits into from Apr 23, 2020

Conversation

tjstansell
Copy link
Contributor

@tjstansell tjstansell commented Apr 22, 2020

This adds a force option when deleting cfn stacks. Since EnableTerminationProtection is only included in the DescribeStacks API response when a stack name or id is provided, there's no way to filter stacks by this value. As such, when deleting stacks, today the only way to ensure they get deleted is to always include the action to disable termination protection, which doubles the number of API calls we need for (many times) no good reason.

@tjstansell
Copy link
Contributor Author

This should close #5633

Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

@kapilt kapilt merged commit 4d6f199 into cloud-custodian:master Apr 23, 2020
@tjstansell tjstansell deleted the cfn-force-delete branch April 23, 2020 14:41
fidelito pushed a commit to fidelito/cloud-custodian that referenced this pull request May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants