【问题标题】:AWS policy error — Number of resources is greater than maximum allowed: But I have only 77 resourcesAWS 策略错误 — 资源数大于允许的最大值:但我只有 77 个资源
【发布时间】:2021-10-02 07:06:26
【问题描述】:

我收到了这个错误

 Serverless Error ----------------------------------------
 
  The CloudFormation template is invalid: Template format error: Number of resources, 507, is greater than maximum allowed, 500

但这里的问题是我在无服务器 yml 中只定义了 77 个服务。出现此错误的其他可能性是什么?

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation serverless


    【解决方案1】:

    如果您使用的是框架(例如无服务器或 AWS SAM),则模板中的一个资源可能会扩展为生成的 cloudformation 模板中的多个资源。这可能就是这里发生的事情。一个潜在的解决方案是使用nested stacks

    【讨论】:

      猜你喜欢
      • 2020-09-11
      • 2021-01-03
      • 2020-01-26
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 2020-08-21
      • 2020-07-09
      • 1970-01-01
      相关资源
      最近更新 更多