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

posta 3 mesi fa350 visualizzazioni
1 Risposta
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
con risposta 3 mesi fa
profile picture
ESPERTO
verificato 3 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande