'Can a AWS Lambda Subscribe to Multiple Event Source Types

Two questions:

  1. Is it possible for a lambda to subscribe to a kinesis topic and an SNS topic? For example, your handler method is defined as: public void handleRequest(Object obj, Context cxt). Would it then be possible to cast obj into a KinesisEvent or SNSEvent?
  2. If I wanted all instances of a lambda to receive some update, would SNS be appropriate for that? For example, I want all instances of a lambda to update its cache (ElastiCache is not applicable for our use case) against a database.

Thanks for all responses!



Solution 1:[1]

Answered in comments by @jarmod.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 blackcompe