无服务器框架的最大策略大小错误 [英] Maximum policy size error from serverless framework

查看:62
本文介绍了无服务器框架的最大策略大小错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署一个大型的无服务器应用程序,我们首先达到了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:

发生错误:IamRoleLambdaExecution-最大策略大小为 角色超过10240个字节 pca-console-production-ap-northeast-2-lambdaRole(服务: AmazonIdentityManagement;状态码:409;错误代码:LimitExceeded;

An error occurred: IamRoleLambdaExecution - Maximum policy size of 10240 bytes exceeded for role pca-console-production-ap-northeast-2-lambdaRole (Service: AmazonIdentityManagement; Status Code: 409; Error Code: LimitExceeded;

此错误与代码行有关吗?

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.

这篇关于无服务器框架的最大策略大小错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆