Can you connect to Amazon ElastiСache Redis outside of Amazon?

后端 未结 9 1644
梦谈多话
梦谈多话 2020-12-02 05:56

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

9条回答
  •  星月不相逢
    2020-12-02 06:26

    SSH port forwarding should do the trick. Try running this from you client.

    ssh -f -N -L 6379::6379 
    

    Then from your client

    redis-cli -h 127.0.0.1 -p 6379
    

    It works for me.

    Please note that default port for redis is 6379 not 6739. 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

提交回复
热议问题