aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 12 forks source link

Token/password generator for ElasticCache with IAM #580

Open kwarunek opened 11 months ago

kwarunek commented 11 months ago

Describe the feature

I would like to have an option in the AWS CLI to generate a token/password for my ElastiCache (redis-compat with IAM auth enabled) cluster based on my current credentials the same way as it works for RDS, EKS and ECR.

Use Case

To connect to ElastiCache's Redis with IAM with a redis-cli. Currently the AWS documentation has a java snippet on how to generate token (there are more on the Internet for node/python etc), but still it requires to have an external tool/scipt to deal with it.

Proposed Solution

Add a subcommand to elasticache like in RDS or ECR to generate token/password for a given cluster

Other Information

No response

Acknowledgements

CLI version used

1.29.21

Environment details (OS name and version, etc.)

Linux

tim-finnigan commented 10 months ago

Hi @kwarunek thanks for reaching out. I'm going to transfer this to our cross-SDK repository for tracking, as it is a feature that would need to be considered across SDKs.

The RDS generate-db-auth-token command for example uses a customization and does not have a corresponding API. And to support your request the AWS CLI and SDKs would likely also need to use a customization. Alternatively the ElastiCache team could potentially build their own library for this use case.

I found an internal backlog item where the ElastiCache and SDK teams have already discussed this request. The SDK teams are not prioritizing the customization at this time due to resource constraints and higher priority projects.

In the meantime others can 👍 this issue to help track demand. I also found a related issue here: https://github.com/aws/aws-sdk/issues/556. We may want to consider consolidating these issues for tracking going forward.

ErezWeiss commented 3 months ago

We are waiting for that also!

slukes commented 2 months ago

Waiting on this too