I have tried to use the ssm start-session to run commands interactively on EC2 instance. while i'm able to work with it there is an issue with session management since if i for example need to stop a running command by pressing CTRL+C actually stoping the aws-shell session instead of the remote ssm session.
Expected behavior would be to open another session when invoking the ssm start-session similar to running an SSH from a remote SSH session.
I have tried to use the ssm start-session to run commands interactively on EC2 instance. while i'm able to work with it there is an issue with session management since if i for example need to stop a running command by pressing CTRL+C actually stoping the aws-shell session instead of the remote ssm session. Expected behavior would be to open another session when invoking the ssm start-session similar to running an SSH from a remote SSH session.