您可以连接到 Amazon 以外的 Amazon ElastiСache Redis 吗? [英] Can you connect to Amazon ElastiСache Redis outside of Amazon?

查看:24
本文介绍了您可以连接到 Amazon 以外的 Amazon ElastiСache Redis 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够连接到 VPC 中的 ElastiCache Redis 实例strong> 来自 EC2 实例.但我想知道是否有办法连接到 Amazon EC2 实例之外的 ElastiCache Redis 节点,例如从我的本地开发设置或其他供应商提供的 VPS 实例.

目前在我的本地设置中尝试时:

redis-cli -h my-node-endpoint -p 6379

我只在一段时间后超时.

解决方案

2018 年更新

先前的答案在编写时是准确的,但是现在可以通过一些配置使用根据 从 AWS 外部访问 ElastiCache 资源


旧答案

不,您不能不求助于诸如隧道之类的技巧",这对于测试来说可能没问题,但会扼杀使用具有额外延迟/开销的超快速缓存的任何真正好处.

旧常见问题解答在 VPC 内部使用 Amazon ElastiCache 与在外部使用它有何不同?:

<块引用>

VPC 内部或外部的 Amazon ElastiCache 集群永远不允许从 Internet 访问

但是,此语言已在 当前常见问题解答

I'm able to connect to an ElastiCache Redis instance in a VPC from EC2 instances. But I would like to know if there is a way to connect to an ElastiCache Redis node outside of Amazon EC2 instances, such as from my local dev setup or VPS instances provided by other vendors.

Currently when trying from my local set up:

redis-cli -h my-node-endpoint -p 6379

I only get a timeout after some time.

解决方案

Update 2018

The previous answer was accurate when written, however it is now possible with some configuration to access redis cache from outside using the directions according to Accessing ElastiCache Resources from Outside AWS


Old Answer

No, you can't without resorting to 'tricks' such as a tunnel, which maybe OK for testing but will kill any real benefit of using a super-fast cache with the added latency/overhead.

The Old FAQ under How is using Amazon ElastiCache inside a VPC different from using it outside?:

An Amazon ElastiCache Cluster, inside or outside a VPC, is never allowed to be accessed from the Internet

However, this language has been removed in the current faq

这篇关于您可以连接到 Amazon 以外的 Amazon ElastiСache Redis 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆