title: Unable to connect to AWS Redis endpoint using redis-cli. Connection timed out
body: <p>I created <code>cache.t2.small</code> Redis under ElastiCache. It's available.</p>
  
  <p>I have the endpoint: <code>portal-test.abcdef.ab.0001.abcd1.cache.amazonaws.com</code>.</p>
  
  <p>I <code>ssh</code>'ed to the instance (tried via <code>ubuntu@ip-172-xx-xx-xx</code> and <code>runcloud@ip-172-xx-xx-xx</code>). I'm trying to connect via <code>redis-cli</code> by typing:</p>
  
  <blockquote>
    <p>redis-cli -h portal-test.abcdef.ab.0001.abcd1.cache.amazonaws.com
    -p 6379 ping</p>
  </blockquote>
  
  <p>I expect <code>PONG</code> but instead I get</p>
  
  <blockquote>
    <p>Could not connect to Redis at
    portal-test.abcdef.ab.0001.abcd1.cache.amazonaws.com:6379:
    <strong>Connection timed out</strong></p>
  </blockquote>
  
  <p>I went into my EC2 instance and defined the inbound traffic for port <code>6379</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/LtC9Y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LtC9Y.png" alt="enter image description here"></a></p>
  
  <p>On runcloud (that I used for this instance) I also opened the port and successfully deployed the firewall rules:</p>
  
  <p><a href="https://i.stack.imgur.com/Cunxn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Cunxn.png" alt="enter image description here"></a></p>
  
  <p>Same timeout. What am I missing?</p>