[pipelines/core] Pipeline stuck if automatic references removed #10172
Labels
@aws-cdk/core
Related to core CDK functionality
@aws-cdk/pipelines
CDK Pipelines library
effort/large
Large work item – several weeks of effort
feature-request
A feature should be added or improved.
p1
Milestone
Let's say there are 2 stacks and they are deployed in a pipeline, with an automatic cross-stack reference between them:
Removal of the use of a cross-stack reference is going to lead to the
Export
being removed from the producer stack in the new template.However, in the pipeline the Producer stack will be deployed before the Consumer stack, and at that point it's not allowed to remove the
Export
yet as theConsumer
that's currently deployed still depends on it.The pipeline is therefore stuck, and there's no way to work around this.
With the CLI, this is not a giant issue as one can manually deploy the
Consumer
first to remove the reference, and then deploy as normal.The best way around this is probably to switch to weak references everywhere, otherwise I don't see a solution.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: