amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Maximum policy size of 10240 bytes exceeded for role

Open varunpsr opened this issue 6 years ago • 3 comments

Describe the bug When we run amplify push on our project, we get an error Maximum policy size of 10240 bytes exceeded for role mspbeLambdaRole53878999-staging (Service: AmazonIdentityManagement; Status Code: 409; Error Code: LimitExceeded. We have 51 types in our schema and 27 lambda triggers, this error came up when we wanted to push the 27th lambda function.

Amplify CLI Version 4.20.0

Expected behavior Push to the cloud without any hiccups.

Desktop (please complete the following information):

  • OS: Windows and Mac
  • Node Version. 12.14.0

varunpsr avatar May 26 '20 05:05 varunpsr

@varunpsr We have a way off minifying CF templates can you try using amplify push --minify. Let me know if this helps

ammarkarachi avatar May 26 '20 17:05 ammarkarachi

Closing as a duplicate of #3815

SwaySway avatar Jun 11 '20 15:06 SwaySway

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

github-actions[bot] avatar May 26 '21 05:05 github-actions[bot]