Skip to content

[Feature] Check resource's deletion (terminate) protection before stack deletion #475

@go-to-k

Description

@go-to-k

Is your feature request related to a problem? Please describe.

We have already checked EnableTerminationProtection for the stack before stack deletion.

But when deleting a stack with EC2 or RDS with delete protection enabled, the deletion is executed halfway through and then fails with the deletion on that resource, giving an error.

However, it may be a good idea to have a mechanism to check this before performing the deletion.

Describe the solution you'd like

Check resource's deletion (terminate) protection before stack deletion

Additional context

Consider not only checking, but also removing the protection option? (and EnableTerminationProtection for the stack too? Too risky indeed?)

Is this inconsistent with exclusion of the Deletion Policy Retain's resources? Use with this option -f? (#485)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions