I am troubleshooting an AWS CLI command:
aws ssm start-session --document-name "AWS-StartPortForwardingSession" ...
And the purpose is to access a MySQL instance inside AWS on the local computer that is running Windows 11.
The session can start, but when trying to make a connection through this port forwarding, I get the following error saying:
“Connection to destination port failed, check SSM Agent logs.”
I am trying to find the directory of SSM agent logs, however the directory C:ProgramDataAmazon does not exist as expected. By the way, I have installed “AWS CLI” but not “AWS Agent” on this computer.
So, how to find the logs?
More details in the relevant part:
...
Starting session with SessionId: botocore-session-xxx-xxx
Port 3306 opened for sessionId botocore-session-xxx-xxx.
Waiting for connections...
Connection accepted for session [botocore-session-xxx-xxx]
Connection to destination port failed, check SSM Agent logs.
...