SSH via IAP tunnel gcloud
Reach a VM with no public IP through Identity-Aware Proxy; no bastion needed
gcloud compute ssh <name> --zone <id> --tunnel-through-iap
more gcloud
all 8 commands →
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
Activate service account
gcloud auth activate-service-account --key-file=key.json && gcloud config set project <id>
GKE kubeconfig credentials
gcloud container clusters get-credentials <cluster> --region <id> --project <id>
List instances with external IP
gcloud compute instances list --format="table(name,status,EXTERNAL_IP)" --filter="status=RUNNING"