This script will fetch all resource information in Google cloud platform. [Its not complete but I have made it easy to add extra modules. By creating extra modules in input_script directory]
- Upload or clone files to google cloud shell.
- Change directory to resourse_lister.
- Run the command
chmod +x run.sh
- To run the code type the command
./run.sh > /dev/null 2>&1
- It may take 15-30 mins to run the code. At the end of the execution it will prompt you to download output.zip.
- Click download.
- Downloaded zip files contain data listed in csv format.
- You can a run a single script at a time listed in the directory, input_script.
- If you want to add extra commands that you want to list. You can add script in input_script. Make sure you list in csv format. [You can refer to other scripts in input_script to create new one.]