Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a Redis event on ElastiCache trigger a Lambda function?

I have a small function I want to move from a dedicated EC2 instance to Lambda. This function is currently triggered by a broadcast from a Redis instance in ElastiCache. How can I make a Redis broadcast trigger a lambda function?

Someone frome AWS said that this could be done through CloudWatch, but the only ElastiCache event I can find is "AWS API Call via CloudTrail".

like image 926
Christopher Waugh Avatar asked Apr 01 '26 07:04

Christopher Waugh


1 Answers

If your use Redis as a queue, try SQS instead. SQS can trigger Lambda. ElastiCache doesn't create events or log entries similar to broadcast events.

like image 73
Yann Avatar answered Apr 02 '26 21:04

Yann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!