google / cloud-forensics-utils

Python library to carry out DFIR analysis on the Cloud
Apache License 2.0
454 stars 88 forks source link

Feature Request: Check for "Deletion Protection Enabled" and disable #283

Closed GreenStorm-Code closed 3 years ago

GreenStorm-Code commented 3 years ago

Sometimes we aren't able to delete instances because Deletion Protection is enabled. This has to be manually turned off. If when deleting an instance we were able to check iteratively for a list of instances where it was enabled and then disable, it would make mass deletion easier.

Something like you pass the project ID and it checks the compute instance API, lists all instances then iteratively passes them back to check.

hiddenillusion commented 3 years ago

This would be useful in AWS as well (EC2 termination protection)

giovannt0 commented 3 years ago

@GreenStorm-Code @hiddenillusion taken care of in both GCP and AWS in #331.