Replies: 3 comments 5 replies
-
the easiest way is to use ssl encrypted connection that mysql protocol suports In order to enable it, you pas In case of AWS RDS you can use a string value as an alias to bundled ssl options configuration, example: const conn = mysql.createConnection({
// username, password, etc
ssl: "Amazon RDS"
}); another option is to have ssh server on the same box as mysql client and tunnel it, for example using ssh2 library |
Beta Was this translation helpful? Give feedback.
-
Hey @sidorares, thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
hello @sidorares, is it possible to use promise wrapper in this method?
|
Beta Was this translation helpful? Give feedback.
-
I know connecting via the provided endpoint is not safe since it will open up connections to the whole internet. What is the best way to connect to the db on RDS to my node app hosted somewhere else?
I see using SSH is an option but node-mysql2 don't have any ability to connect that way. Please help. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions