<p>I want to use Redis on AWS.
And my development env is depends on Skaffold with Kubernetes.</p>
<p>My security group configuration is:</p>
<p><a href="https://i.stack.imgur.com/oRclY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oRclY.png" alt="Inbound rules" /></a></p>
<p><a href="https://i.stack.imgur.com/ceZS2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ceZS2.png" alt="Outbound rules" /></a></p>
<p>And my Redis config like that:</p>
<p><a href="https://i.stack.imgur.com/LZ0yv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LZ0yv.png" alt="Redis config" /></a></p>
<p>I want to connect this Redis on my nodeJS app from Kubernetes pods
So, my code snipped like that:</p>
<pre><code>let statsQueue = new Queue('statistics', '&lt;Primary-Endpoint-On-AWS-Redis');
</code></pre>
<p>But I getting this error:</p>
<pre><code>         triggerUncaughtException(err, true /* fromPromise */);
          ^

Error: connect EINVAL 0.0.24.235:6379 - Local (0.0.0.0:0)
    at internalConnect (node:net:909:16)
    at defaultTriggerAsyncIdScope (node:internal/async_hooks:431:12)
    at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1055:9)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:8) {
  errno: -22,
  code: 'EINVAL',
  syscall: 'connect',
  address: '0.0.24.235',
  port: 6379
}
</code></pre>
<p>Why I'm getting this error? How can ı solve this?</p>

akasaa
<p>The error solved with adding Redis:// from URL.</p>
<p>So connection like that:
let statsQueue = new Queue('statistics', 'Redis://&lt;Primary-Endpoint-On-AWS-Redis');</p>
