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

Implement a Termination Protection safeguard #125

Merged
merged 5 commits into from
Oct 15, 2022
Merged

Implement a Termination Protection safeguard #125

merged 5 commits into from
Oct 15, 2022

Conversation

mdial89f
Copy link
Contributor

@mdial89f mdial89f commented Oct 15, 2022

Purpose

This changeset makes it so the utility will check if any stages that would be destroyed have termination protection enabled; if any do, it will refuse to continue.

Linked Issues to Close

Closes #3

Approach

The way the logic flows in the utility, there was the distinct possibility that termination protection enabled stages would have their S3 buckets emptied prior to the utility failing.
These changes avoid that. Up front, before confirmation is even requested, the utility will check each would-be-destroyed cloudformation stack for termination protection. If any have termination protection enabled, the utility will refuse to continue the destruction process any further, leaving the stacks untouched. This is a safer way to do things.

Learning

N/A

Assorted Notes/Considerations

Feat / Enhancement

Pull Request Creator Checklist

  • Any associated issue(s) are linked above.
  • This PR and linked issues(s) are a complete description of the changeset.
  • Someone has been assigned this PR.
  • Someone has been marked as reviewer on this PR.

Pull Request Assignee Checklist

  • Any associated issue(s) are linked above.
  • This PR meets all acceptance criteria for any linked issues.
  • This PR and linked issues(s) are a complete description of the changeset.

@mdial89f mdial89f self-assigned this Oct 15, 2022
@mdial89f mdial89f merged commit b9dfafd into main Oct 15, 2022
@mdial89f mdial89f deleted the termcheck branch October 15, 2022 00:44
github-actions bot pushed a commit that referenced this pull request Oct 15, 2022
# [2.1.0](v2.0.1...v2.1.0) (2022-10-15)

### Features

* **termination protection check:**  Implement a Termination Protection safeguard ([#125](#125)) ([b9dfafd](b9dfafd))
@github-actions
Copy link

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Check for terminationProtection before clearing buckets
1 participant