Home > front end >  how to know at what date time my ebs volume got unattached
how to know at what date time my ebs volume got unattached

Time:11-08

I have to delete my unattached ebs volumes only if that ebs is unattached for last weeks. for that I need to find exact date & time of ebs got unattached from ec2.

CodePudding user response:

There are two ways to achieve this- Manual- Use AWS cloudtrail to find the event and get the timestamp from event. Delete the resource manually.

Automatically- Create a script, probably using python boto3 to find unattached ebs for 1 week and delete. Either schedule it using Lambda or add it as a cron in any server having access to required aws resources.

  • Related