Skip to content

Instantly share code, notes, and snippets.

@polleyg
polleyg / cloud_run_instances.sh
Created December 13, 2021 01:17
List all Cloud Run instances and how many max instances they are set to
gcloud run services list --project="<here>" --format=json | jq -r '.[] | [.metadata.name,.spec.template.metadata.annotations."autoscali
ng.knative.dev/maxScale"] | @tsv'
@polleyg
polleyg / list_gcp_projects.sh
Created February 18, 2022 04:55
Lists GCP projects
gcloud projects list --format="csv(name,projectId,projectNumber)" | grep "<something>"