https://github.com/build-on-aws/aws-redis-iam-auth-golang
Using IAM authentication for Redis on AWS
https://github.com/build-on-aws/aws-redis-iam-auth-golang
aws-iam golang redis
Last synced: about 1 month ago
JSON representation
Using IAM authentication for Redis on AWS
- Host: GitHub
- URL: https://github.com/build-on-aws/aws-redis-iam-auth-golang
- Owner: build-on-aws
- License: mit-0
- Created: 2023-12-06T16:58:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-07T05:22:29.000Z (over 1 year ago)
- Last Synced: 2025-02-18T01:39:22.866Z (4 months ago)
- Topics: aws-iam, golang, redis
- Language: Go
- Homepage: https://community.aws/content/2ZCKrwaaaTglCCWISSaKv1d7bI3/using-iam-authentication-for-redis-on-aws
- Size: 7.81 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Using IAM authentication for Redis on AWS
*How to securely connect your Go applications to Amazon MemoryDB (or ElastiCache) for Redis using IAM*
Amazon MemoryDB has supported username/password based authentication [using Access Control Lists](https://docs.aws.amazon.com/memorydb/latest/devguide/components.html#whatis.components.acls) since the very beginning. But it also supports [IAM for authentication](https://aws.amazon.com/about-aws/whats-new/2023/05/amazon-memorydb-redis-iam-authentication/).

[MemoryDB documentation](https://docs.aws.amazon.com/memorydb/latest/devguide/auth-iam.html#auth-iam-Connecting) has an example for a Java application with the Lettuce client. The process is similar for other languages, but you still need to implement it. This repository contains an example for a Go application with the widely used [go-redis](https://github.com/redis/go-redis) client.
For a deep dive, [check out this blog post](https://community.aws/content/2ZCKrwaaaTglCCWISSaKv1d7bI3/using-iam-authentication-for-redis-on-aws).
## License
This library is licensed under the MIT-0 License. See the LICENSE file.