-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(codepipeline): add usePipelineRoleForActions field support in L2 #33961
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #33961 +/- ##
=======================================
Coverage 82.39% 82.39%
=======================================
Files 120 120
Lines 6960 6960
Branches 1175 1175
=======================================
Hits 5735 5735
Misses 1120 1120
Partials 105 105
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
1419d2c
to
9538fba
Compare
}); | ||
|
||
const stack = new cdk.Stack(app, 'aws-cdk-integ-test-service-roles-for-actions'); | ||
const pipelineServiceRole = new iam.Role(stack, 'pipeline-role', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this role used? and I don't see this test using usePipelineRoleForActions
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted.
@@ -903,6 +903,10 @@ new codepipeline.Pipeline(this, 'Pipeline', { | |||
}); | |||
``` | |||
|
|||
## usePipelineServiceRoleForActions field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super super nit: Avoid having the property name in the title. Title should be descriptive and the content should mention usePipelineRoleForActions
.
797f00f
to
e435053
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
Issue # 27605
#27605
Reason for this change
Lots of customer reported they don't want such many new roles generated in cdk level.
Current cdk library will help customer to generate a action role if no role configured.
But in Codepipeline backend logic, the pipeline service role will be used as default action role, which the cdk library doesn't align.
This pr will support customer to have more alternatives and won't break anything
Description of changes
add
usePipelineRoleForActions
field support in L2 construct, and modify the functionAddAction
andProduceAction
to make sure this flag covers everything neededDescribe any new or updated permissions being added
No
Description of how you validated changes
Unit test/Integ test/local deployment
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license