claranet/ssha

AgentVersion not set in describe-instances

Closed this issue · 0 comments

The Session Manager code checks to see if 'AgentVersion' is set in the describe-instances output to determine whether we can connect via Session Manager. However, it appears that this is not set even when the SSM Agent is fully functional resulting in it falling back to using SSH.

The check is here: https://github.com/claranet/ssha/blob/master/ssha/ssm.py#L125

If I comment that if statement out on the instances I am having issues with it connects as expected via Session Manager.