-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
(pipelines): Cannot deploy a cross-region pipeline from a Stage #17643
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
Comments
From my understanding after discussing with @rix0rrr , it seems that the issue is in here:
|
Yep. |
rix0rrr
added a commit
that referenced
this issue
Nov 26, 2021
Because a cross-environment pipeline cannot be created in `Stage`, it cannot be deployed using CDK Pipelines. The error is: ``` Error: You cannot add a dependency from 'AAA' (in Stage 'BBB') to 'CCC' (in the App): dependency cannot cross stage boundaries ``` Root cause is that the `Pipeline` construct creates a support stack in the `App` scope, which is outside its containing `Stage`, and hence the dependency crosses stage boundaries. Fixes #17643.
rix0rrr
added a commit
that referenced
this issue
Nov 26, 2021
Because a cross-environment pipeline cannot be created in `Stage`, it cannot be deployed using CDK Pipelines. The error is: ``` Error: You cannot add a dependency from 'AAA' (in Stage 'BBB') to 'CCC' (in the App): dependency cannot cross stage boundaries ``` Root cause is that the `Pipeline` construct creates a support stack in the `App` scope, which is outside its containing `Stage`, and hence the dependency crosses stage boundaries. Fixes #17643.
This was referenced Nov 26, 2021
mergify bot
pushed a commit
that referenced
this issue
Nov 26, 2021
…17730) Because a cross-environment pipeline cannot be created in `Stage`, it cannot be deployed using CDK Pipelines. The error is: ``` Error: You cannot add a dependency from 'AAA' (in Stage 'BBB') to 'CCC' (in the App): dependency cannot cross stage boundaries ``` Root cause is that the `Pipeline` construct creates a support stack in the `App` scope, which is outside its containing `Stage`, and hence the dependency crosses stage boundaries. Fixes #17643. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
beezly
pushed a commit
to beezly/aws-cdk
that referenced
this issue
Nov 29, 2021
…ws#17730) Because a cross-environment pipeline cannot be created in `Stage`, it cannot be deployed using CDK Pipelines. The error is: ``` Error: You cannot add a dependency from 'AAA' (in Stage 'BBB') to 'CCC' (in the App): dependency cannot cross stage boundaries ``` Root cause is that the `Pipeline` construct creates a support stack in the `App` scope, which is outside its containing `Stage`, and hence the dependency crosses stage boundaries. Fixes aws#17643. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
pedrosola
pushed a commit
to pedrosola/aws-cdk
that referenced
this issue
Dec 1, 2021
…ws#17730) Because a cross-environment pipeline cannot be created in `Stage`, it cannot be deployed using CDK Pipelines. The error is: ``` Error: You cannot add a dependency from 'AAA' (in Stage 'BBB') to 'CCC' (in the App): dependency cannot cross stage boundaries ``` Root cause is that the `Pipeline` construct creates a support stack in the `App` scope, which is outside its containing `Stage`, and hence the dependency crosses stage boundaries. Fixes aws#17643. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO
pushed a commit
to TikiTDO/aws-cdk
that referenced
this issue
Feb 21, 2022
…ws#17730) Because a cross-environment pipeline cannot be created in `Stage`, it cannot be deployed using CDK Pipelines. The error is: ``` Error: You cannot add a dependency from 'AAA' (in Stage 'BBB') to 'CCC' (in the App): dependency cannot cross stage boundaries ``` Root cause is that the `Pipeline` construct creates a support stack in the `App` scope, which is outside its containing `Stage`, and hence the dependency crosses stage boundaries. Fixes aws#17643. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
What is the problem?
The cross-region support stack created by CDK pipeline is placed in the wrong scope - outside of the Stage, which leads to
dependency crossing a stage boundary
error on synth.This makes it impossible to deploy a cross-region CDK pipeline from a Stage.
Reproduction Steps
cdk synth
What did you expect to happen?
Successful synth
What actually happened?
CDK CLI Version
1.133.0
Framework Version
No response
Node.js Version
17.1.0
OS
Linux
Language
Typescript, Python, .NET, Java, Go
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: