LoginSignup
4
4

More than 5 years have passed since last update.

Go製EC2 Run Commandクライアント: runss

Last updated at Posted at 2016-08-01

EC2 Run Commandを使い始めたのでシンプルなクライアントをさかしてみたんですが、単一バイナリのクライアントが見つからなかったのでGoで実装しました。

EC2(Linux)でコマンドをたたいて結果を取得するだけの単純なコマンドです。

インストール

brew install https://raw.githubusercontent.com/winebarrel/runss/master/homebrew/runss.rb

使い方

$ runss -command "echo HELLO 1>&2; echo world!" -instance-ids i-123456789
- InstanceId: i-123456789
  Status: Success
  Output: |
    world!

    ----------ERROR-------
    HELLO

カンマ区切りのリストで複数のインスタンスを指定可能です。

$ runss -command "..." -instance-ids i-123456789,i-999999999
...
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4