brianmario / mysql2

A modern, simple and very fast Mysql library for Ruby - binding to libmysql
http://github.com/brianmario/mysql2
MIT License
2.25k stars 550 forks source link

Using AWS IAM database authentication #1263

Open rohittak16 opened 2 years ago

rohittak16 commented 2 years ago

I am using IAM database authentication

To connect with database using IAM role works by creating a token via AWS API which is valid for 15 mins, but rails database.yml gets cached and will not be evaluated again for a new connection(which may fail after 15 min). What would be the best way to get IAM database authentication working?

floor114 commented 1 year ago

@rohittak16 Have you found a working solution? I’m trying to add IAM database authentication as well.