I am new to AWS and Node js. I want to query a MySQL server in a private ec2 instance in a testing project which I am building using Node js. How should I go about it? Thanks
EDIT: I want to access it through my local computer. The way I came up with was:
Start a terminal from node js - don't know which method would be best
Use the terminal to login into public ec2
connect to private ec2 through public instance
launch the MySQL client through private instance and query it.
I wanted to know if there is a better way to do this. And any advice on how to achieve the same