Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(IAM Role) : Maximum policy size of 10240 bytes exceeded for role #12403

Closed
CodeEngineTechnology opened this issue Jan 7, 2021 · 1 comment
Closed
Labels
guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged.

Comments

@CodeEngineTechnology
Copy link

❓ General Issue

Hello,
I have an IAM role that has been working fine for my AWS CodePipeline (cdk deploy works without any problem) however when I add functional testing stage to my pipeline I get the following error :

Maximum policy size of 10240 bytes exceeded for role

          functionalStage = {
            stageName: 'FunctionalTest',
            actions: [
              new codepipelineActions.CodeBuildAction({
                actionName: 'Codebuild',
                project: functionalCodeBuild,
                input: build,
              }),
            ],
          };
          codePipeline.addStage(functionalStage);

I even created multiple smaller policies and attached them to my role but didn't help.

  const lambdaRole = new iam.Role(props.scope, `lambda-role`, {
    assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
    inlinePolicies: {
      codebuild: new iam.PolicyDocument({
        statements: [eventsLambdaAccessSSMPolicy, codeBuildPipelineCWPolicy, codecommitPolicy, s3AndLogsPolicy, lambdaPolicy],
      }),
    },
  });

Is this a known issue ?
Thanks in advance

@CodeEngineTechnology CodeEngineTechnology added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Jan 7, 2021
@github-actions
Copy link

github-actions bot commented Jan 7, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant