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.
SSH port forwarding should do the trick. Try running this from you client.
Then from your client
It works for me.
Please note that default port for redis is
6379
not6739
. An also make sure you allow the allow the security group of the EC2 node that you are using to connect to your redis instance into your Cache security group.Also, AWS now supports accessing your cluster more info here
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.
From here: http://aws.amazon.com/elasticache/faqs/#Can_I_access_Amazon_ElastiCache_from_outside_AWS
EDIT 2018: This answer above was accurate when written, however it is now possible with some configuation to access redis cache from outside using the directions approximately 1/2 way down this page: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/accessing-elasticache.html