I'm trying to connect to a RDS instance from a MySQL Client tool. But the issue I found was it could only SSH to one machine (AWS bastion host). But how do I connect to the RDS instance internally thorugh the AWS bastion host?
Consider the machines A, B and C where,
A-> local machine
B-> AWS ec2-instance
C-> RDS instance
On making the machine B as a AWS bastion host, Is it possible to connect through SSH to RDS instance via the AWS bastion host (machine B) just by connecting to machine B from machine A?
i.e., on connecting through SSH to machine B from machine A, the machine B should automatically SSH and connect to the MySQL RDS instance (machine C).