Not Able to connect Redis serverless Endpoint in ec2 ubuntu in same VPC

0

I have created a redis serverless cache , Now i want to connect with the ec2 instance. Both are in a same VPC.

the connection is got Successfully connected , but when i send the ping to the Endpoint it's send me this error.

Error: Server closed the connection (5.01s)

Can Anyone Help me to resolve the Issue.You can see in the image

asked 2 months ago292 views
1 Answer
0

Hello,

It looks like you are connecting to the cache without using TLS. ElastiCache Serverless always has encryption in transit enabled and you must use TLS to connect. Please use the following redis-cli command:

redis-cli -h test-redis-fefpqv.serverless.aps1.cache.amazonaws.com --p 6379 --tls

For additional troubleshooting steps, please see: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/wwe-troubleshooting.html.

Thanks, Abhay

AWS
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions