|
2 | 2 |
|
3 | 3 | [](https://travis-ci.org/glassechidna/gossm)
|
4 | 4 |
|
| 5 | +`gossm` is a cross-platform command-line tool that makes it ridiculously simple |
| 6 | +to run shell commands remotely on your AWS EC2 instances. It is powered by the |
| 7 | +[AWS Systems Manager service][sysman], which allows remote control through the |
| 8 | +[SSM Agent][agent]. The agent is preinstalled on Windows, Amazon Linux and Ubuntu |
| 9 | +AMIs. It can also be manually installed on others. |
| 10 | + |
| 11 | +[sysman]: https://docs.aws.amazon.com/systems-manager/index.html |
| 12 | +[agent]: https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent.html |
| 13 | + |
| 14 | +## Installation |
| 15 | + |
| 16 | +Download the latest release from [GitHub Releases][download]. There is a different |
| 17 | +file for Mac, Windows and Linux. Choose the download for the computer *you* are |
| 18 | +using, not the OS the EC2 instance is running. |
| 19 | + |
| 20 | +[download]: https://github.com/glassechidna/gossm/releases |
| 21 | + |
| 22 | +## Usage |
| 23 | + |
| 24 | +Usage is as simple as specifying the instance(s) you want to run a command on |
| 25 | +and the command you want to run. Specific instance(s) can be listed using `-i` |
| 26 | +and multiple instances can be specified, e.g. `-i i-abc123 -i i-def456`. |
| 27 | +Alternatively, you can specify a tag using `-t` and all matching instances |
| 28 | +will run the command, e.g. `-t tagname=value`. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +If you don't want interleaved output when running a command on multiple instances, |
| 33 | +it can also be helpful to save the output to files. This can be done using `-f`. |
| 34 | +This will save the files to `<cmd>/<instance id>.txt` in the current directory. |
| 35 | + |
| 36 | +Additionally, you can specify an AWS profile using `--profile <name>` and |
| 37 | +"quiet" mode using `-q`, which shows only command output and no metadata. |
0 commit comments