我在尝试sls deploy
与schedule
事件的函数时遇到以下错误:
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
事件。
您的帐户中已有多少Cloudwatch规则?默认情况下,您只能拥有100:https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/cloudwatch_limits_cwe.html
如果由于您已达到帐户限制,我不得不猜测错误正在发生