mySQL RDS with IAM Role Access Denied-How to pass [enable-cleartext-plugin=true] to mysql2 in a node.js application?
I am getting access denied when trying to connect to a mySQL RDS instance using IAM Role instead of passing a password, BUT ONLY WHEN I DO IT FROM MY NODE.JS APPLICATION. I am able to successfully connect to the RDS using IAM Role via mysql client (command line) from the same EC2 instance in which the node.js application is hosted.