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.
- 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
- 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
-
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 -
Authenticate with GCP
gcloud auth application-default login
-
Run the Dashboard
streamlit run detect_unused.py
MIT License. Feel free to use, modify, and distribute.
