Maximum policy size error from serverless framework

早过忘川 提交于 2021-01-20 11:22:11

问题


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:

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.


回答1:


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.



来源:https://stackoverflow.com/questions/53870075/maximum-policy-size-error-from-serverless-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!