https://github.com/flowerinthenight/g-ssh-cmd
A simple wrapper to [ssh -t cmd] for AWS AutoScaling Groups.
https://github.com/flowerinthenight/g-ssh-cmd
autoscaling-groups aws ssh
Last synced: 7 months ago
JSON representation
A simple wrapper to [ssh -t cmd] for AWS AutoScaling Groups.
- Host: GitHub
- URL: https://github.com/flowerinthenight/g-ssh-cmd
- Owner: flowerinthenight
- License: mit
- Created: 2025-02-17T06:37:38.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T03:26:42.000Z (8 months ago)
- Last Synced: 2025-02-18T03:29:46.649Z (8 months ago)
- Topics: autoscaling-groups, aws, ssh
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/flowerinthenight/g-ssh-cmd/actions/workflows/main.yml)
A simple wrapper to `ssh user@host -t command` for executing arbitrary commands to AWS [AutoScaling Groups](https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-groups.html) and GCP [Managed Instance Groups](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups). It uses your environment's `aws` and `gcloud` commands, as well as your SSH setup behind the scenes.
This tool has been created primarily for tailing logs from multiple, managed VMs, without going through either CloudWatch Logs (AWS) or Cloud Logging (GCP).
To install using [Homebrew](https://brew.sh/):
``` sh
$ brew install flowerinthenight/tap/g-ssh-cmd
```Basic usage looks something like:
``` sh
# Tail all AWS ASG VMs' system logs:
$ g-ssh-cmd asg my-asg 'journalctl -f' --id-file ~/.ssh/key.pem# Tail all GCP MIG VMs' system logs:
$ g-ssh-cmd mig my-mig 'journalctl -f'
```