Add support for RDS IAM with dynamic credentials #351
keymon
started this conversation in
Feature Ideas
Replies: 1 comment 1 reply
-
|
very interestingly, I came across this comment that proposes using a external file to pull the secret PGPASSFILE: prometheus-community/postgres_exporter#498 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On AWS RDS there is the option of use RDS IAM authentication, instead of static credentials.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html
That requires the client to request a new password before connecting, as the passwords are only valid for 15m.
I am not sure if dbmate supports this at the moment, I couldn't find how to do it. If not, we need to modify it to support this connection mode.
As a workaround one can run a script before calling dbmate to do the migration:
but the migration must be run within 15m
Beta Was this translation helpful? Give feedback.
All reactions