Thursday, October 27, 2022

[SOLVED] Can I acces RDS (MySQL) in private subnet with local Spring boot Application?

Issue

I have 3 databases (one RDS instance) in private subnet. I wanna connect my local spring boot application with RDS DB (in private subnet).

I have a bastion server for checking DB.

so, I wanna connect this db with my local spring boot application then should I use bastion server?

How can I solve my issue? Thanks mates.


Solution

I resolved bros.

use Jsch(in JVM lang) sdk and tunneling you have to need bastion server, so you can connect RDS in private subnet

Good luck bros.



Answered By - MOONPIDERMAN
Answer Checked By - Katrina (WPSolving Volunteer)