pipelines: creates cross account support stack even though the action has cross account role defined #22220
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
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
The text was updated successfully, but these errors were encountered: