Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shashyajoshi/9a2a5c975cde689c4295ccf820091919 to your computer and use it in GitHub Desktop.
Save shashyajoshi/9a2a5c975cde689c4295ccf820091919 to your computer and use it in GitHub Desktop.
Output of the gcloud instances list command in CSV format
$ gcloud compute instances list - format="csv(name,labels.app-name,labels.biz-unit,labels.env-name,metadata.items.server-role,metadata.items.server-type, metadata.items.os-image)"
name,app-name,biz-unit,env-name,server-role,server-type,os-image
app-server-1,misc,ecom,prod,app,tomcat,centos
web-server-1,misc,ecom,prod,web,nginx,centos
web-server-2,misc,ecom,prod,web,nginx,centos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment