I'm trying to run database migrations from Github Actions, on my Aurora RDS instance that is on a private network. In GHA, I created an ssh tunnel via an EC2 jumpbox. Mapping the ports, and using this tunnel, I have used the standard mysql client to connect to it and outputed a query to the console show databases;, and this is successful. So: the tunnel works, and nothing is blocking the connection from either side.
From NodeJS, using mysql2, I'm getting a timeout. I don't understand what I need to do, to figure out how to solve it.
I've asked a question on SO on this, but thought I would add one here too.. https://stackoverflow.com/questions/78036167/cannot-connect-timeout-to-mysql-using-nodejs-mysql2-via-ssh-tunnel
I'm trying to run database migrations from Github Actions, on my Aurora RDS instance that is on a private network. In GHA, I created an ssh tunnel via an EC2 jumpbox. Mapping the ports, and using this tunnel, I have used the standard mysql client to connect to it and outputed a query to the console show databases;, and this is successful. So: the tunnel works, and nothing is blocking the connection from either side.
From NodeJS, using mysql2, I'm getting a timeout. I don't understand what I need to do, to figure out how to solve it.
Here's the connection:
Here's the config:
And here's the tunnel:
See anything I don't? What can I do to understand the root cause?