List instances with external IP gcloud
Custom table of running VMs and public IPs via --format/--filter projections
gcloud compute instances list --format="table(name,status,EXTERNAL_IP)" --filter="status=RUNNING"
more gcloud
all 8 commands →
Flatten IAM bindings by member
gcloud projects get-iam-policy <id> --flatten="bindings[].members" --format="table(bindings.role,bindings.members)"
Read recent error logs
gcloud logging read 'severity>=ERROR' --limit 20 --freshness=1h --format='value(timestamp,resource.type,textPayload)'
SSH via IAP tunnel
gcloud compute ssh <name> --zone <id> --tunnel-through-iap
Read secret payload
gcloud secrets versions access latest --secret=<name> --project <id>
Storage rsync to bucket
gcloud storage rsync -r -d ./build gs://<name>/site