Add support for RDS IAM with dynamic credentials #351
keymon
started this conversation in
Feature Ideas
Replies: 1 comment
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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