Skip to content

postgres/awspostgres: Allow using IAM DB authentication #3069

@reegnz

Description

@reegnz

Is your feature request related to a problem? Please describe.

I am want to use AWS IAM authentication with my RDS databases:
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html

It would be great if awspostgres would support that way of connecting out of the box.

Describe the solution you'd like

When not providing a password, try to build an auth token with the AWS SDK default configuration.
If that succeeds, use that as the password.

Describe alternatives you've considered

I've considered developing a postgres proxy that I can run on localhost that can do that for me, but that's a pretty big effort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions