Export your current compute instances to a CSV format in local directory
This script will extract all the projects and compute instances within those projects and export this data to a .csv format in the same directory
Make sure node and gcloud is installed on your system
gcloud - https://cloud.google.com/sdk/docs/install
nodejs - https://nodejs.org/en/download/
git clone https://github.com/sadasystems/gcp-compute-tool.git
cd gcp-compute-tool
Install gcloud beta Make sure this user has sufficient permissions at YOUR ORGANIZATION level IAM After gcloud init, make sure you select project in the same as the organization
gcloud components install beta --quiet
gcloud default application login
gcloud init
npm install
In the .env file, enter the SADA_BILLING_ACCOUNT_ID (Or any billing id that you want to do analysis on)
node main.js