DEV Community

Cover image for How can i secure my redis instance.
Prathm More
Prathm More

Posted on

How can i secure my redis instance.

I'm using a Redis database hosted on Render, and my backend is hosted on AWS Elastic Beanstalk, which comes with a load balancer. The problem is that I want to secure the connection between the Redis database and the load balancer's DNS. However, Redis on Render only allows IP-based access control, and I don’t have a static IP—only a DNS from the load balancer.

As a workaround, I've had to expose the Redis database to the public (0.0.0.0/0), which isn't secure. I'm looking for a way to secure the database so that only requests from the load balancer are allowed, despite not having a static IP.

Does anyone have any suggestions or ideas on how I can resolve this and make the connection secure?

Top comments (0)