(pipelines): role on CodeBuildStep doesn't get used on CodeBuildAction #18291
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
What is the problem?
When passing a role to the CodeBuildStep the role is used on the project, but not the CodeBuildAction.
This results in a role for each CodeBuildAction being created which can cause
Maximum policy size of 10240 bytes exceeded for
on the Pipeline Default Role if you have a lot of CodeBuildSteps.https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/pipelines/lib/codepipeline/_codebuild-factory.ts#L305-L322
is missing
role: this.props.role
to leverage that role.Reproduction Steps
This is a quick reproduction step typically the CodeBuildStep would be used as a pre or post on a stage or wave.
What did you expect to happen?
Expect to have the role used for Project and the build action.
What actually happened?
The role is used for the project but not the Code Build Action. The Code Build Action gets a different role which is created for each build action.
for example
CDK CLI Version
N/A
Framework Version
No response
Node.js Version
N/A
OS
N/A
Language
Typescript
Language Version
No response
Other information
This issue can be seen directly in testing the code build step.
The text was updated successfully, but these errors were encountered: