AWS lambda无服务器`schedule`事件创建错误:LimitExceededException

问题描述 投票:2回答:1

我在尝试sls deployschedule事件的函数时遇到以下错误:

An error occurred: SupWorldEventsRuleSchedule1 - The requested 
resource exceeds the maximum number allowed. (Service: 
AmazonCloudWatchEvents; Status Code: 400; Error Code: 
LimitExceededException; Request ID: f39cee40-a651-11e8-a111-97a9e3d0f938).

配置:

functions:
  supWorld:
    handler: dist/handlers/index.helloWorld
    events:
      - schedule:
          rate: cron(*/10 * * * ? *)
          enabled: true

这个错误的一个奇怪的方面是没有与这个lambda堆栈相关的其他schedule事件。

aws-lambda serverless-framework serverless
1个回答
2
投票

您的帐户中已有多少Cloudwatch规则?默认情况下,您只能拥有100:https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/cloudwatch_limits_cwe.html

如果由于您已达到帐户限制,我不得不猜测错误正在发生

© www.soinside.com 2019 - 2024. All rights reserved.