Skip to content

Simple Go script for listing all Google Compute Engine instances by project and status

Notifications You must be signed in to change notification settings

PixelCodeNL/gce-instances-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

gce-instances-summary

Simple Go script for listing all Google Compute Engine instances by project and status. It's using your gcloud defaults for authentication, so make sure you're logged in.

Install

Install Go - see https://golang.org/doc/install

go get -u github.com/jordypixelcode/gce-instances-summary
go install github.com/jordypixelcode/gce-instances-summary

Usage

gce-instances-summary

Output:

Project project-x (europe-west1-d)

                       server1 - RUNNING
                       server2 - RUNNING
                       server3 - RUNNING


Project project-y (europe-west1-d)

                       server1 - RUNNING


Project project-z (europe-west1-d)

                      server-x - TERMINATED
                      server-y - RUNNING

About

Simple Go script for listing all Google Compute Engine instances by project and status

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages