amazon-ssm-agent icon indicating copy to clipboard operation
amazon-ssm-agent copied to clipboard

AWS-StartPortForwardingSessionToRemoteHost to multiple remote hosts/ports

Open alecl opened this issue 2 years ago • 1 comments

To facilitate testing with environments that are security group locked to the private network we port forward as per the instructions here: https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html#sessions-remote-port-forwarding

aws ssm start-session \
    --target instance-id \
    --document-name AWS-StartPortForwardingSessionToRemoteHost \
    --parameters '{"host":["mydb.example.us-east-2.rds.amazonaws.com"],"portNumber":["3306"], "localPortNumber":["3306"]}'

We have a number of services that need to be accessed and we need multiple hosts and ports forwarded via a single SSM tunnel (as we have done in the past with SSH port forwarding).

Is this supported? If not it would be a great addition.

alecl avatar Dec 18 '22 20:12 alecl

Thank you for this feature request. We will consider it for our product roadmap.

YujiaozhAws avatar Feb 27 '23 22:02 YujiaozhAws