ElasticCache Redis issue
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3522049. --> Reported by: [pcambra](https://www.drupal.org/user/122101) Related to !11 >>> <p>This issue comes probably from upstream but I'm finding the following error when using this module with AWS/ElasticCache:</p> <pre>CrowdSec\RemediationEngine\CacheStorage\CacheStorageException: Error when creating Redis cache adapter:Invalid Redis DSN: parameter "dbindex" must be a number. in CrowdSec\RemediationEngine\CacheStorage\Redis-&gt;__construct() (line 35 of /opt/drupal/vendor/crowdsec/remediation-engine/src/CacheStorage/Redis.php).<br>CrowdSec\RemediationEngine\CacheStorage\Redis-&gt;__construct() (Line: 198)</pre><p>Digging a bit more, I see that the preg_match from RedisTrait.php doesn't really expect a tls://? Maybe related <a href="https://github.com/predis/predis/issues/480">https://github.com/predis/predis/issues/480</a> and <a href="https://github.com/predis/predis/issues/480">https://github.com/predis/predis/issues/480</a></p> <p>My endpoint is of the form tls://{ENV}.siteinstance-dev-aws-customer-{CUSTOMER}-001.{ID}.use1.cache.amazonaws.com</p> <p>And the params calculated by RedisTrait:</p> <pre>{"scheme":"file","host":"tls","path":"\/\/{ENV}.siteinstance-dev-aws-customer-{CUSTOMER}-001.{ID}.use1.cache.amazonaws.com:6379"}</pre><p>Has anybody successfully configured this? the rest of the Redis stuff works as expected.</p> > Related issue: [Issue #3004561](https://www.drupal.org/node/3004561) > Related issue: [Issue #3525493](https://www.drupal.org/node/3525493)
issue