I have managed to get SSM port forwarding working to an AWS instance using the following from my "jump server".
aws ssm start-session --target $INSTANCE_ID \
--document-name AWS-StartPortForwardingSession \
--parameters '{"portNumber":["3389"],"localPortNumber":["33389"]}'
However this seems to bind to localhost only i.e. I can remote desktop to localhost:33389.
I am trying to set this up so I remote desktop to the "jump server" on :33389 from an external machine and this gets forwarded to the AWS instance. Is there any way this can be done?
I can't seem to find any documentation on the AWS-StartPortForwardingSession document.