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

后端 未结 9 1648
梦谈多话
梦谈多话 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:36

    These answers are out of date.

    You can access elastic-cache outside of AWS by following these steps:

    1. Create a NAT instance in the same VPC as your cache cluster but in a public subnet.
    2. Create security group rules for the cache cluster and NAT instance.
    3. Validate the rules.
    4. Add an iptables rule to the NAT instance.
    5. Confirm that the trusted client is able to connect to the cluster.
    6. Save the iptables configuration.

    For a more detailed description see the aws guide:

    https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/accessing-elasticache.html#access-from-outside-aws

提交回复
热议问题