首页 > 解决方案 > “AWS::Include”的大小限制

问题描述

为了设置我们的API-Gatewayvia cloudformation,我们使用Fn::transformwithAWS::include将 open-api 规范加载到其中并通过 cloudformation 参数替换一些参数。然而,随着我们开发 api,我们遇到了 cloudformation 对我们的救助:

"ResourceStatusReason": "Embedded stack arn:aws:cloudformation:eu-west-1:...:stack/lZYW/UUID was not successfully updated. 
Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: 
  Transform AWS::Include failed with: The specified S3 object is too big.",

在这种情况下,文件大小为 455kb,因此限制AWS::Include似乎仍然是 450kb 限制。在其他地方,这个限制在一段时间前被取消了(https://aws.amazon.com/about-aws/whats-new/2020/10/aws-cloudformation-now-supports-increased-limits-on-five-service -配额/)。

有谁知道解决这个问题的方法或如何解决它?

非常感谢!

标签: amazon-web-servicesamazon-cloudformationamazon-api-gateway

解决方案


推荐阅读