aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.04k stars 322 forks source link

SSM port forwarding for specific domains? #378

Open laur1s opened 3 years ago

laur1s commented 3 years ago

I can see that in AWS-StartPortForwardingSession Document there's two parameters portNumber and localPortNumber. However my use case is that I want to forward port from SSM managed instance to RDS instance inside AWS.

E.g.: I can use SSH Port forwarding for this task ssh -NL 4000:xxx.yyy.us-east-1.rds.amazonaws.com:3306 ec2-user@ec2-ip And then connect to my database using localhost which is then forwarded to the ec2 instance.

Is it possible to accomplish the same task with SSM?

sruthi-maddineni commented 3 years ago

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

magJ commented 3 years ago

See:

208

389

nikhilm-in commented 2 years ago

We would find this useful as well.

nikhilm-in commented 1 year ago

Thanks for releasing StartPortForwardingSessionToRemoteHost. We love it and use it everyday.