Skip to content

deepakkumar-m/Automation-Cleaning-Up-Unattached-Persistent-Disks-in-GCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ GCP Unattached Persistent Disks Cleanup

This project automates the identification of unattached persistent disks in Google Cloud Platform (GCP) and displays them on a sleek Streamlit dashboard. Optimize your GCP environment by identifying and managing unused disks efficiently.


๐ŸŽฎ Features

  • Lists all unattached persistent disks in a specified project and zone
  • Interactive Streamlit dashboard for real-time insights
  • Simple input fields for Project ID and Zone
  • Clean, responsive UI with detailed disk information

๐Ÿ›  Prerequisites

  • Python 3.9+
  • Service Account with Compute Admin IAM Role
  • Google Cloud SDK (gcloud) configured
  • Streamlit and Google Cloud Libraries:
    pip install streamlit google-cloud-compute

๐Ÿš€ Setup and Run

  1. Clone the Repository

    git clone https://github.com/deepakkumar-m/Automation-Cleaning-Up-Unattached-Persistent-Disks-in-GCP.git
    cd Automation-Cleaning-Up-Unattached-Persistent-Disks-in-GCP
  2. Authenticate with GCP

    gcloud auth application-default login
  3. Run the Dashboard

    streamlit run detect_unused.py

๐ŸŽ‰ Dashboard Preview

Dashboard Screenshot


๐Ÿ“œ License

MIT License. Feel free to use, modify, and distribute.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages