Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum number of event source mappings per AWS Lambda?

I cannot find this limitation listed anywhere in the AWS Documentation for maximum number of event sources to trigger one Lambda.

I have a Lambda which will be triggered by an indefinitely growing number of S3 Buckets. Obviously this will only work if the maximum number of buckets exceeds the maximum number of triggers. Is there a maximium? If so, what is it, and can it be increased?

like image 208
theherk Avatar asked Jul 05 '17 20:07

theherk


People also ask

How many events can Lambda handle?

The number 3000 is AWS Lambda's burst concurrency limit in us-east-1 region. After the initial burst, your functions' concurrency can scale by an additional 500 instances each minute. This continues until there are enough instances to serve all requests, or until a concurrency limit is reached.

Can Lambda have multiple event sources?

Yes a lambda functions can have event sources of different types but you must use the com.

What is Lambda event source mapping?

Lambda Event source mapping refers to the configuration which maps an event source to a Lambda function. Event source mapping enables automatic invocation of the Lambda function when events occur. Each event source mapping identifies the type of events to publish and the Lambda function to invoke when events occur.

Does AWS Lambda have a limit?

There is a hard limit of 6mb when it comes to AWS Lambda payload size. This means we cannot send more than 6mb of data to AWS Lambda in a single request. Developers will typically run into this limit if their application was using AWS Lambda as the middle man between their client and their AWS S3 asset storage.


3 Answers

I just ran into a limit. I added 60 CloudWatch triggers to a Lambda function and when I tried adding one more trigger, I got an error saying:

"The final policy size (20643) is bigger than the limit (20480). (Service: AWSLambda; Status Code: 400; Error Code: PolicyLengthExceededException;"

like image 68
Greg S Avatar answered Nov 15 '22 19:11

Greg S


This is still very high in search results, which led me here. I was able to create 6500 event source mappings for an MQ Event Source. The Web Console maxes out at 1000 displayed event source mappings. I did not verify that all 6500 event source mappings worked.

like image 28
David Meiser Avatar answered Nov 15 '22 20:11

David Meiser


There's a paginated response to http://docs.aws.amazon.com/lambda/latest/dg/API_ListEventSourceMappings.html , and since I can find no info on the lambda limits page, I bet there's no limit (or at least there's some huge number you don't have to practically worry about).

like image 32
djcrabhat Avatar answered Nov 15 '22 19:11

djcrabhat