- Newest
- Most votes
- Most comments
Hello.
As you may know, when trying to connect to RDS via EC2 Instance Connect Endpoint, the following error occurs.
I also confirmed that port forwarding to RDS was possible for a few days after this feature was announced, but I have confirmed that it no longer works after a few days.
I think the fact that ports other than ports 22 and 3389 can be used was probably an unintended behavior by AWS.
awscli.customizations.ec2instanceconnect.websocket - ERROR - {"ErrorCode":"InvalidParameter","Message":"The specified RemotePort is not valid. Specify either 22 or 3389 as the RemotePort and retry your request."}
As an alternative, you can use port forwarding using Systems Manager Session Manager.
https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/
Well I get to it via instance connect and not SSM - it's doing dynamic port forwarding - probably via the openssh client and the jumphost I have(AWS Linux 2). It's cool that it works - I was just expecting the error message and I do not get it
answered 2 years ago
