Posted on under Laravel by Owen Conti.
If you're using ElastiCache with the Encryption In-Transit setting turned on, you'll need to tweak your REDIS_HOST environment variable when connecting with Laravel:
1// Before2REDIS_HOST=some-master-node.cache.amazonaws.com3 4// After5REDIS_HOST=tls://some-master-node.cache.amazonaws.com
That will tell your Redis client to use TLS when connecting to your ElastiCache instance.
Hopefully you found this article useful! If you did, share it on X!
Found an issue with the article? Submit your edits against the repository.