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

fix(pipelines): too many CodeBuild steps inflate policy size #20396

Merged
merged 12 commits into from May 24, 2022

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented May 18, 2022

(This change has been split off from #20189 because that PR was growing
too big)

Collapse CodeBuild action Roles: each CodeBuild step used to create a
fresh Role to run the CodeBuild action. Change to use one Role for all
CodeBuild actions. This saves a lot of resources and policy space when
using many CodeBuild steps, and doesn't appreciably change the
security posture of the Pipeline (note: this is not about the
Execution Role of the CodeBuild projects, this is about the Role
assumed by the Pipeline to initiate execution of the Project).

Relates to #19276, #19939, #19835.


All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

(This change has been split off from #20189 because that PR was growing
too big)

Collapse CodeBuild action Roles: each CodeBuild step used to create a
fresh Role to run the CodeBuild action. Change to use one Role for all
CodeBuild actions. This saves a lot of resources and policy space when
using many CodeBuild steps, and doesn't appreciably change the
security posture of the Pipeline (note: this is not about the
Execution Role of the CodeBuild projects, this is about the Role
assumed by the Pipeline to initiate execution of the Project).

Relates to #19276, #19939, #19835.
@rix0rrr rix0rrr requested a review from a team May 18, 2022 12:40
@rix0rrr rix0rrr self-assigned this May 18, 2022
@gitpod-io
Copy link

gitpod-io bot commented May 18, 2022

@aws-cdk-automation aws-cdk-automation requested a review from a team May 18, 2022 12:40
@github-actions github-actions bot added the p2 label May 18, 2022
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label May 18, 2022
@rix0rrr rix0rrr added p1 and removed p2 labels May 18, 2022
@rix0rrr rix0rrr added the effort/medium Medium work item – several days of effort label May 18, 2022
@rix0rrr rix0rrr requested review from comcalvi and a team May 19, 2022 11:51
@mergify
Copy link
Contributor

mergify bot commented May 24, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: cd1f7ec
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit f334060 into master May 24, 2022
@mergify mergify bot deleted the huijbers/collapse-action-roles branch May 24, 2022 15:40
@mergify
Copy link
Contributor

mergify bot commented May 24, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/medium Medium work item – several days of effort p1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants