You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spawn connect <linux> -- <cmd> silently drops the command and opens an interactive SSM session (no public IP / --session-manager / key-injection fallback) #1306
On Linux, spawn connect <i> -- <cmd> ignores <cmd> and opens an interactiveaws ssm start-session whenever the SSM path is taken. It is taken when:
--session-manager is passed,
the instance has no public IP, or
the key-injection fallback fails.
In cmd/connect.go, runConnect calls connectViaSessionManager(instance.InstanceID, instance.Region), which takes no command argument. args[1:] is only read later, on the SSH path (buildRemoteCommand). A scripted one-shot call therefore hangs on stdin instead of running the command.
Windows already runs one-shot commands over SSM RunCommand (connectWindows → client.RunPowerShell). The Linux equivalent would use client.RunShellScript. It needs a decision on the user, since RunShellScript runs as root and SSH runs as the spawn:local-username user (sudo -u?), and on exit-code and output propagation.
#1303 guards only the new case, where the security groups admit no SSH: a one-shot there fails at once with the reason. The three existing cases above still open an interactive session. This is a code trace only, not reproduced live.
Activity
fix(connect,launch): run one-shot commands over SSM; launch flags for…
fix(connect,launch): run one-shot commands over SSM; launch flags for…