Skip to content

generate-db-auth-token command for memorydb #9830

@IuryAlves

Description

@IuryAlves

Describe the feature

Like RDS, MemoryDB supports IAM authentication through temporary auth tokens. The AWS CLI provides a command for RDS to generate such tokens: aws rds generate-db-auth-token

It would be very helpful to have an equivalent command in the MemoryDB CLI to generate IAM auth tokens for MemoryDB, so that the developer experience is consistent across AWS database services.

Use Case

Our RDS databases use only IAM authentication. When a developer needs to access a database from their local machine, they run the following command to generate a temporary auth token:

  --hostname <HOSTNAME> \
  --port 5432 \
  --username <USERNAME> \
  --region eu-west-1)

We are now migrating our MemoryDB databases to also use IAM authentication, but we discovered that generate-db-auth-token is not supported for MemoryDB. We have written a custom script to generate the token, but this requires an additional setup step for developers.

Proposed Solution

Create a subcommand for aws memorydb to generate DB auth tokens.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

2.31.29

Environment details (OS name and version, etc.)

Irrelevant

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.memorydbp3This is a minor priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions