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

Help the user by noting that resource has a deletion policy #43

Open
bittrance opened this issue Feb 2, 2020 · 0 comments
Open

Help the user by noting that resource has a deletion policy #43

bittrance opened this issue Feb 2, 2020 · 0 comments

Comments

@bittrance
Copy link
Collaborator

I received the below summary on updating a stack from which I had removed the definition of an S3 bucket which had DeletionPolicy: Retain.

Updating stack quest-swarm
ElasticsearchBackups[AWS::S3::Bucket] Remove
Continue? [yN]

On proceeding, Cloudformation does indeed skip the deletion:

UPDATE_IN_PROGRESS 23:19:43+0000  quest-swarm[Stack] User Initiated
UPDATE_COMPLETE_CLEANUP_IN_PROGRESS 23:19:46+0000  quest-swarm[Stack]
DELETE_SKIPPED 23:19:48+0000  ElasticsearchBackups[Bucket]
UPDATE_COMPLETE 23:19:48+0000  quest-swarm[Stack]

I have had better ergonomy. Since we have access to the previous template, we should be able to check if there was a deletionpolicy on resources that are marked for deletion and notify the user. This is likely to be useful not only for Retain but also for Snapshot which may take some time.

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

No branches or pull requests

1 participant