-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(kms): Allow opting out of "Retain" deletion policy #1685
Conversation
Gives the user control over whether the key should be retained or scheduled for deletion when it is removed from the stack (or the stack is deleted). This is convenient in particular for integration tests, to avoid accumulating garbage over successive runs.
…-key-deletion-policy
…-key-deletion-policy
@@ -46,7 +46,7 @@ | |||
"Version": "2012-10-17" | |||
} | |||
}, | |||
"DeletionPolicy": "Retain" | |||
"DeletionPolicy": "Delete" | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a good practice it is usually preferable not to modify existing tests but rather add new tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... technically I'm only touching here because I want to stop littering the account with one-off keys that we'll never use again... 😅
Gives the user control over whether the key should be retained or
scheduled for deletion when it is removed from the stack (or the stack
is deleted). This is convenient in particular for integration tests, to
avoid accumulating garbage over successive runs.
Pull Request Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.