Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Getting SoftwareInstalled in compute engine

I want to list down all the software installed in all the compute engine in gcp. Is there any service/API through which I can achieve this?

3 1 165
1 REPLY 1

Hello @abhi27  ,Welcome on Google Cloud Community.

Yes. You could use compute_v1 method from google-cloud-compute library (Python) to get instance details ( but I don't know if you will be able to use the same library to list software like with rpm -qa command. I think that it is not possible). However, would be better to use Ansible for example and work with data obtained via ansible playbook, instead of using Python scripts. Additionally you could use cfg2html and collect html files with entire config. I've used this tool for onprem config backups some time ago. 

 

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost