Repository navigation
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-commanderThe 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/--profileand-r/--regionbefore the command:ssm-commander -p prod execisssm-commander exec -p prod. There they used to be options ofconnect, 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]:--ecstakes the task to go through, as--target ecs:...does, and
still picks from lists without a value.ssm-commander forward --ecs prod/apiused to look for a preset named
prod/api.- The
ecs:prefix offorward --targetis accepted byexecanddoctor --ecsas well (ssm-commander exec ecs:prod/api), so an ECS target is written the same way in every command.
Changed
ssm-commander --helplistssshandscpwith one line each; their notes on argument order are in
ssm-commander ssh --helpandssm-commander scp --help.- Hints say more: an unknown preset name in
forwardshows how an instance or a service of that name is written
(--target,--ecs),-paftersshis answered with-pbeforesshas well as--profile, and a
mistyped command also shows theconnectform in case the word was a target.
Removed
- A target without its command.
ssm-commander web-1used to meanssm-commander connect web-1; now it fails at
once withUnknown command "web-1"and a hint showing theconnectandexecforms. With ECS in the tool a bare
name could be an instance or a service, and only instances were searched. Without a commandconnectstill 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 aboutconnect
(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 namedexec.