- Newest
- Most votes
- Most comments
Hello.
If the EC2 instance is registered as a Systems Manager managed instance, I think it is better to use SSM port forwarding as per the steps in the document below.
https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/
Another option is to use EC2 Connect Endpoint. https://www.doit.com/secured-access-to-private-rds-using-amazon-ec2-instance-connect-endpoint/
Thanks for sharing suggestion.
As suggested, tried EC2 Connect Endpoint but my EC2 instance is not connecting with RDS. That is, if i try to access my application which is hosted on EC2 instance windows server is not connecting with MySQL RDS.
Regarding Port forwarding suggestion, trying that, if any problem will update here.
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 months ago
Hello, I have tried the SSM port forwarding using shared link on my windows server EC2 instance.
aws ssm start-session --target i-058 --document-name AWS-StartPortForwardingSessionToRemoteHost --parameters host="rds.amazonaws.com",portNumber="3306",localPortNumber="1204"
Getting this error, An error occurred (TargetNotConnected) when calling the StartSession operation: i-0c0e3d09900512c58 is not connected 4. Then tried this command
aws ssm start-session --target i-058
, still getting same error.Kindly share your suggestion to resolve above error.
Any suggestion @Riku Kobayashi, OsvaldoMarte?
Hi Riku Kobayashi/Osvaldo Marte, Now i am facing different error. Eventhough had "AmazonSSMManagedInstanceCore" and VPC endpoints. Still connect button is not visible on EC2 instance. Any suggestion?