Skip to content

fnjoha/Unattached-volumes-Script

Repository files navigation

Unattached-volumes-Script

export the list of AWS unattached EBS volumes to an Excel file. Please update "profile" section of script Run this in Powershell ISE for more granularity

  1. Events rule triggers the Lambda function.
  2. Lambda function assumes the IAM role 3)Lambda function then interacts with the EC2 service to identify unattached EBS volumes
  3. then Creates snapshots of these volumes
  4. Then Tag the snapshots (zotec:component = UnattachedVolume90daydelete)
  5. Deletes the unattached volumes
  6. Then Another Eventbridge triggers a saparate Lambda function daily.
  7. Lambda function assumes the IAM role
  8. Lambda function then interacts with the EC2 service to:
  9. Describe snapshots with the specified tag (zotec:component = UnattachedVolume90daydelete)
  10. Delete snapshots that are older than 90 days

About

export the list of AWS unattached EBS volumes to an Excel file. Please update "profile" section of script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors