I have an SNS topic to which a lambda is subscribed.
In the subscribed lambda, in the event parameter, I have a Records attribute which turns out to be an array and containing (at least) one message from SNS.
That's why I'm wondering if, at some point, it is possible that my lambda is invoked with more than one SNS message.
In the AWS Documentation (http://docs.aws.amazon.com/lambda/latest/dg/with-sns-create-package.html), they only look at Records[0] however. I could not find any information on why is that Records in an array.
Asked
Active
Viewed 561 times
1

Noel Llevares
- 15,018
- 3
- 57
- 81

hlefebvr
- 97
- 1
- 8
1 Answers
3
According to the FAQs for Amazon SNS...
Q: Will a notification contain more than one message?
No, all notification messages will contain a single published message.

Community
- 1
- 1

Noel Llevares
- 15,018
- 3
- 57
- 81
-
Youps, I have been searching for that information on every doc page but the FAQ... -- – hlefebvr Dec 13 '17 at 15:45