bertrandmartel / aws-ssm-session

Javascript library for starting an AWS SSM session compatible with Browser and NodeJS
MIT License
50 stars 9 forks source link

Node example doesn't work, handshake timeout #10

Closed cristianrgreco closed 3 years ago

cristianrgreco commented 3 years ago

I get this error when running the Node example:

{"MessageId":"e61ab986-c9c4-4b9c-a557-0c7fe13ee4c5","CreatedDate":"2021-10-01T09:24:34.917Z","DestinationId":"9eb2aa6d-936c-44a9-80aa-2c163fd558d8","SessionId":"xxxxxxxxxxxx-00326d985ae62b3af","MessageType":"channel_closed","SchemaVersion":1,"Output":"\n----------ERROR-------\nEncountered error while initiating handshake. Handshake timed out. Please ensure that you have the latest version of the session manager plugin."}

I've updated the session manager plugin to the latest and the issue is the same.

cristianrgreco commented 3 years ago

I was starting SSM with DocumentName: "AWS-StartSSHSession", removing it fixes the issue