Skip to content

ssm-commander 2.0.0

Latest

Choose a tag to compare

@rlaace423 rlaace423 released this 10 Nov 18:27

Install with Homebrew or npm (Node.js 22 or newer), plus the AWS session-manager-plugin:

brew install rlaace423/tap/ssm-commander
npm install -g ssm-commander

The first word after ssm-commander is now always a command. One way of writing connect stops working, hence the
new major version; every command line shown in the README works as before.

Added

  • -p/--profile and -r/--region before the command: ssm-commander -p prod exec is ssm-commander exec -p prod. There they used to be options of connect, so the command after them was looked up as an instance
    (ssm-commander -p prod exec) or refused as an argument too many (ssm-commander -p prod connect web-1).
  • forward --ecs cluster/service[/task-id]: --ecs takes the task to go through, as --target ecs:... does, and
    still picks from lists without a value. ssm-commander forward --ecs prod/api used to look for a preset named
    prod/api.
  • The ecs: prefix of forward --target is accepted by exec and doctor --ecs as well (ssm-commander exec ecs:prod/api), so an ECS target is written the same way in every command.

Changed

  • ssm-commander --help lists ssh and scp with one line each; their notes on argument order are in
    ssm-commander ssh --help and ssm-commander scp --help.
  • Hints say more: an unknown preset name in forward shows how an instance or a service of that name is written
    (--target, --ecs), -p after ssh is answered with -p before ssh as well as --profile, and a
    mistyped command also shows the connect form in case the word was a target.

Removed

  • A target without its command. ssm-commander web-1 used to mean ssm-commander connect web-1; now it fails at
    once with Unknown command "web-1" and a hint showing the connect and exec forms. With ECS in the tool a bare
    name could be an instance or a service, and only instances were searched. Without a command connect still runs,
    taking options only (ssm-commander, ssm-commander -p prod).

Fixed

  • A mistyped command (ssm-commander exsec) is reported at once with the closest command. It used to be taken for
    an instance name first: the profile (and, where needed, the region and an MFA code) was asked for and the
    instances were listed before the error appeared, and with arguments after it the error was about connect
    (too many arguments for 'connect', unknown option '--list').
  • A command written after an option of its own (ssm-commander --connectable exec) is told to come first, with the
    line to write, instead of being looked up as an instance named exec.