简体   繁体   English

每个 AWS Lambda 的事件源映射的最大数量是多少?

[英]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.我无法在 AWS 文档中的任何地方找到此限制,以了解触发一个 Lambda 的最大事件源数。

I have a Lambda which will be triggered by an indefinitely growing number of S3 Buckets.我有一个 Lambda,它会被无限增长的 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?如果是,它是什么,它可以增加吗?

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:我向 Lambda 函数添加了60 个 CloudWatch 触发器,当我尝试再添加一个触发器时,我收到一条错误消息:

"The final policy size (20643) is bigger than the limit (20480). (Service: AWSLambda; Status Code: 400; Error Code: PolicyLengthExceededException;" “最终策略大小 (20643) 大于限制 (20480)。(服务:AWSLambda;状态代码:400;错误代码:PolicyLengthExceededException;”

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).http://docs.aws.amazon.com/lambda/latest/dg/API_ListEventSourceMappings.html有分页响应,由于我在 lambda 限制页面上找不到任何信息,我敢打赌没有限制(或者至少有您实际上不必担心的一些巨大数字)。

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.我能够为 MQ 事件源创建 6500 个事件源映射。 The Web Console maxes out at 1000 displayed event source mappings. Web 控制台最多显示 1000 个事件源映射。 I did not verify that all 6500 event source mappings worked.我没有验证所有 6500 个事件源映射是否都有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM