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?
I can see that in
AWS-StartPortForwardingSession
Document there's two parametersportNumber
andlocalPortNumber
. 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?