Helps to SSH into gcloud instances:
- project fuzzy filter
- instance name fuzzy filter
- 1 day local project cache
- 1 hour local instance cache
brew install caarlos0/tap/gssh
You'll also need the gcloud
cli available and set up, you can do so with:
brew cask install google-cloud-sdk
gcloud auth login
Basic usage:
gssh
Pre-filter project:
gssh my-proj
Pre-filter both project and instance:
gssh my-proj instance-xyz
Flush caches:
gssh --flush
Port-forward instance port 9200 to localhost:19200:
GSSH_FLAGS='-L 19200:localhost:9200' gssh my-proj elasticsearch