mlevit / aws-auto-cleanup

Programmatically delete AWS resources based on an allowlist and time to live (TTL) settings
MIT License
495 stars 54 forks source link

Question: DELETE - NOT CONFIRMED #104

Closed membra closed 2 years ago

membra commented 2 years ago

I have a question about this status - what exactly does it mean?

I ran in destroy mode and the resource that was marked like that - was not deleted.

What defines that?

mlevit commented 2 years ago

DELETE - NOT CONFIRMED is the status assigned to CloudFormation Stacks that have been "deleted".

CloudFormation Stacks are deleted asynchronously due to how long they can potentially take to delete. Since AWS Auto Cleanup is run within a Lambda Function, we cannot wait for all Stacks to delete as the Function may hit the 15-minute timeout limit. Hence Stacks are "deleted" and then AWS Auto Cleanup moves on without being able to confirm if the Stacks were actually deleted or not.