-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
❓ 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
Metadata
Metadata
Assignees
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.