- Newest
- Most votes
- Most comments
Hi there,
I understand you are trying to connect to your Redis cluster from your Elastic Beanstalk instance but you are getting the timeout error. Timeout error is usually caused by how you have configured your security groups, Network Access Control Lists and Route Tables. If your EBS instance and Redis cluster are in the same VPC. On your inbound rules for Redis Cluster allow access from the security group used by your EBS instance instead of 0.0.0.0/0
. When your Redis cluster is in the same VPC as the instance, the security group that you will use to control access to your cluster is the one associated with the VPC [1]. If your EBS instance and Redis cluster are in different VPCs you will have to setup a VPC connection first following the steps in this documentation and ensure that:
- SG and NACL on the ElastiCache allow inbound traffic from on port 6379 from the security group used by your EBS instance and,
- SG and NACL on the Beanstalk instance allow outbound connections to the ElastiCache on the port 6379
References:
Relevant content
- asked 2 years ago
- asked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago