title: Laravel (phpredis) will not connect with password (AWS Elasticache)
body: <p>I have a Redis 6.x instance on AWS Elasticache. It is clustered, and has in-transit encryption. I also have a RBAC set up (User with a password in AWS). I am able to connect using the <code>redis-cli</code> and then authorize using <code>AUTH &lt;password&gt;</code> and it works great. (It uses Redis 6 ACL feature)</p>
  <p>However when I add the password to my Laravel configuration I get the error:</p>
  <blockquote>
  <p>Couldn't map cluster keyspace using any provided seed</p>
  </blockquote>
  <p>If I remove the password from the User in Elasticache, Laravel connects fine and uses Redis perfectly.</p>
  <p>Here is my configuration. The password is correct in my env file and because of clustering, is added both in default connection and in the options['parameters'] key.</p>
  <pre><code>'redis' =&gt; [
  
          'client' =&gt; 'phpredis',
          'cluster' =&gt; true,
  
          'clusters' =&gt; [
              'default' =&gt; [
                [
                  'scheme' =&gt; 'tls',
                  'host' =&gt; env('REDIS_HOST', '127.0.0.1'),
                  'password' =&gt; env('REDIS_PASSWORD', null),
                  'port' =&gt; env('REDIS_PORT', 6379),
                  'database' =&gt; 0,
                ],
              ],
  
              'options' =&gt; [
                  'cluster' =&gt; 'redis',
              ],
          ],
  
  
          'options' =&gt; [
              'parameters' =&gt; [
                  'scheme' =&gt; 'tls',
                  'password' =&gt; env('REDIS_PASSWORD', null),
              ],
              'ssl' =&gt; ['verify_peer' =&gt; false],
              'context' =&gt; [],
          ],
  
      ],
  </code></pre>
  <p>I've seen this error before but it seems like it occurs whenever something bad happens, rather than giving me specifics. For example, if I remove the password, and restrict some of the access permissions like SET or READ/WRITE commands, then I also get the same error, and so it is very hard to decipher what the error is.</p>