问题描述
部署一个大型的无服务器应用程序,我们首先达到了200种资源的上限.我们使用serverless-plugin-split-stacks
库解决了该问题,但稍后可能会引入另一个问题:
Deploying a sizeable serverless application, we had first hit the cap of 200 resources. we using serverless-plugin-split-stacks
library solved that issue but possibly introduced another one later on:
此错误与代码行有关吗?
This errors related a code lines?
任何建议或建议将不胜感激.预先谢谢你.
Any advice or suggestion would be appreciated. Thank you in advance.
推荐答案
当您创建的AWS Iam角色太大时,此错误很常见.它具有最大设置大小.如果您通过内联json创建了一个AWS IAMRole,并且该策略变得太大,则会发生同样的事情.缩小IAMRole策略的大小或将其分解为几个策略.
This error is common when the AWS Iam Role you are creating becomes too large. It has a max set size. The same thing would happen if you created an AWS IAMRole via inline json and the policy became too large. Either reduce the IAMRole Policy size or break it up into several policies.
这篇关于无服务器框架的最大策略大小错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!