"ssm start-session" should print debug output to stderr instead of stdout #5965
Labels
feature-request
A feature should be added or improved.
service-api
This issue is due to a problem in a service API, not the SDK implementation.
ssm
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
ssm start-session
should enable the user to pipe stdout to a file or other command.Currently, it dumps debug output to stdout, which is not helpful.
SDK version number
Same behavior with v1 and v2.
aws-cli/1.19.12 Python/3.8.5 Linux/4.19.128-microsoft-standard botocore/1.20.12
aws-cli/2.1.27 Python/3.7.3 Linux/4.19.128-microsoft-standard exe/x86_64.ubuntu.20 prompt/off
Platform/OS/Hardware/Device
Ubuntu 20.04.1 LTS (in WSL2)
To Reproduce (observed behavior)
Expected behavior
Logs/output
n/a
Additional context
Use case: Run a command on the instance, and do some follow-up actions (local or remote) based on the output.
Unix commands generally print additional info to stderr.
Only the main output / payload should go to stdout.
I could find the text "Starting session" / "session with SessionId" neither in this repo, nor in the botocore repo.
-> I assume that this needs to be fixed in the
session-manager-plugin
, which seems not to be available on Github.The text was updated successfully, but these errors were encountered: