Skip to content

[request]: RDS generate-db-auth-token for IAM authentication #147

@allan2

Description

@allan2

This feature request is for generate-db-auth-token in RDS to enable IAM authentication.

Granting rds_iam to a user to enable IAM authentication disables password authentication so this would be helpful to stay with IAM auth.

The typical usage is setting the environment variable

export PGPASSWORD="$(aws rds generate-db-auth-token --hostname $RDSHOST --port 5432 --region us-west-2 --username iamuser)"

which is then used to authenticate using your chosen method, e.g. psql or JetBrains AWS Toolkit.

[1] generate-db-auth-token on AWS Docs
[2] How do I connect to my RDS PostgreSQL instance using IAM authentication?


Maintainers notes

  • Include this example in the RDS docs
  • add a customization to add this to the RDS client

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions