Open knovichikhin opened 2 years ago
I tracked it down to this code:
When pipeline creates Source
action out of the CodePipelineSource
, it does not provide a role. One potential fix is to expose action role as a property of CodeCommitSourceOptions
.
Any updates on this? I'm facing the same issue when I would like to use an existing role for the Source action for cross-account access to a CodeCommit repository on a different AWS account. Seems like currently the only way to work around this would be to implement a custom child class of CodePipelineSource
that allows passing the action role.
Describe the bug
This pipeline downloads source from a different account using existing cross account role. In this case, there should be no need to cross account support stack. However, pipeline generates one for the code commit account.
It appears that the role is not assigned to the
Source
stage action. Which is what could be triggering the support stack creation.Expected Behavior
Expecting that
cross-account-support-stack-CODE_COMMIT_ACCOUNT
does need to be created, since the action already has cross account role.Current Behavior
CDK adds
cross-account-support-stack-CODE_COMMIT_ACCOUNT
stack and tries to deploy it during SelfMutate stage.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.42.0 (build 7d8ef0b)
Framework Version
1.140.0
Node.js Version
v14.18.1
OS
MacOS 12.5.1
Language
Typescript
Language Version
TypeScript (3.9.10)
Other information
No response