Skip to content

Deleting an AWS Account that has resources with deletion protection

0

Both EKS and RDS have deletion protection for cluster and RDS instances. Sources:

Will this prevent deletion of AWS Account or Organization?

Put another way, if I delete my Account/Organization, will I be presented an error saying some resources are deletion protected? do I need to delete all resources manually myself or AWS would do it (thus overriding any deletion protection config)?

asked 9 months ago249 views

1 Answer
0

When you delete an AWS account that contains resources with deletion protection enabled (such as Aurora DB clusters or EKS clusters), the deletion protection on individual resources does not prevent the account deletion process.

When you close an AWS account, AWS initiates a process to delete all resources in the account regardless of their deletion protection settings. This means you don't need to manually disable deletion protection or remove protected resources before closing your account.

The deletion protection feature is designed to prevent accidental deletion of specific resources during normal operations within an active account. It serves as a safeguard against unintended actions by users or automation processes that might attempt to delete critical resources. For example, with Aurora DB clusters, deletion protection prevents accidental deletion of the cluster and its data volume during day-to-day operations.

Similarly, for EKS clusters, deletion protection requires explicit disablement before a cluster can be deleted, providing an additional safety control for critical environments during normal operations.

However, these protections operate at the resource level and are overridden by the account closure process, which is designed to remove all resources regardless of their individual protection settings.
Sources
Deleting Aurora DB clusters and DB instances - Amazon Aurora
What's New at AWS - Cloud Innovation & News
Protect EKS clusters from accidental deletion - Amazon EKS

answered 9 months ago

EXPERT

reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.