Support for Credentials Provider #2343
-
Hi! AWS has recently added IAM integration (role-based access instead of passwords) to ElastiCache Redis Clusters. Amazon ElastiCache for Redis - Authenticating with IAM It seems the client should periodically refresh a token to be used as a password for new connections. I would appreciate any guidance on how to integrate a credential provider as recommended above. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Will this feature be supported anytime soon in V9 or V8? |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with
If I understand nothing wrong, it is used in go-redis as follows: rdb := redis.NewClient(&redis.Options{
Addr: ":6379",
CredentialsProvider: func() (username string, password string) {
userID, iamAuthToken := iamAuth(.....)
return userID, iamAuthToken
},
}) @moreandres @servlette |
Beta Was this translation helpful? Give feedback.
-
Finally, I can use Elasticache through IAM. Thanks. I try to write IAMAuthTokenRequest like https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth-iam.html
And, I apply it like this
You can check replication-group-id with aws-cli tools. |
Beta Was this translation helpful? Give feedback.
Finally, I can use Elasticache through IAM. Thanks.
I try to write IAMAuthTokenRequest like https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth-iam.html
And here's my code.