-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(aws-cloudformation): change use of Role to IRole in CodePipeline Actions #1364
Conversation
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.
Looks good to me, but I'm not sure this counts as a Breaking change, since Role
implements IRole
.
@eladb what do you think?
I've added the necessary (hopefully sufficient) fix to |
Thanks for taking this one over @RomainMuller! |
I think it's still a breaking change, as |
@@ -51,7 +51,7 @@ export interface PipelineDeployStackActionProps { | |||
* | |||
* @default A fresh role with admin or no permissions (depending on the value of `adminPermissions`). | |||
*/ | |||
role?: iam.Role; | |||
role?: iam.IRole; |
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.
The change in props is not a breaking change (code that passed Role
here would still work)
@@ -97,7 +97,7 @@ export class PipelineDeployStackAction extends cdk.Construct { | |||
/** | |||
* The role used by CloudFormation for the deploy action | |||
*/ | |||
public readonly role: iam.Role; | |||
public readonly role: iam.IRole; |
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.
This is a breaking change (code that expects to find Role
here now finds something more abstract).
packages/@aws-cdk/app-delivery/test/test.pipeline-deploy-stack-action.ts
Outdated
Show resolved
Hide resolved
…ons to IRole. BREAKING CHANGE: this changes the type of the `role` property in CFN CodePipeline Actions from `Role` to `IRole`. This is needed to use imported Roles when creating Actions. Fixes aws#1361
0c6e2f3
to
e825527
Compare
Changed the test according to @eladb's suggestion. |
BREAKING CHANGE: this changes the type of the
role
property in CFN CodePipeline Actionsfrom
Role
toIRole
.This is needed to use imported Roles when creating Actions.
Fixes #1361
Pull Request Checklist
Please check all boxes, including N/A items:
Testing
Documentation
Title and description
fix(module): <title>
bug fix (patch)feat(module): <title>
feature/capability (minor)chore(module): <title>
won't appear in changelogbuild(module): <title>
won't appear in changelogBREAKING CHANGE: <describe exactly what changed and how to achieve similar behavior + link to documentation/gist/issue if more details are required>
Fixes #xxx
orCloses #xxx
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.