AWS Elasticache Timeout from EC2

Actually solution is to add security group to elasticache cluster, and this security group should allow 6379 port. enter image description here


I think the problem is about security groups of your instance.

To the best of my knowledge you need to allow the traffic on the security group associated to your EC2 instance.

If you are using memcached the port is 11211 if redis the port is 6379

Try to have a look to the AWS official documentation.

http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/GettingStarted.AuthorizeAccess.html

I hope this helps somehow.


First, check the instance security group and check port 6379 is allowed in Inbound.

After that, check your default VPC security group and add inbound rule Custom TCP Rule-6379-Anywhere and save.

I hope this will fix the issue.