如何将本地主机中的 elasticache Redis 连接到 Rails?

How to connect elsticache Redis in my localhost with Rails?

我可以从本地主机将 Redis ElastiCache 连接到 Rails 吗?

这是我的安全组配置。

这是我来自 secrets.yml

的终点
redis_url: 'redis://[name_endpoint]:6379'

谢谢。

它的文档很少,而且是一个奇怪的设计决定,但是 Elasticache is not accessible from outside your VPN not matter what you do with your security groups. There is a workaround,但是它很痛苦并且需要额外的盒子。