How do I find who created a GCE VM instance in Google Cloud? -
background
in our current google cloud project seems it's common people create vm, start it, of stuff , leave there without turning off or deleting vm.
i'm trying write automated script pulls list of vm instances every day , send e-mail vm owners , see if forgot turn off vms.
question
so there easy way find out created gce vm instance using google cloud api?
you can view information in stackdriver -> logging -> logs. log json file, actor field looking for. can export logs analysis.
Comments
Post a Comment