cdk-diff-action icon indicating copy to clipboard operation
cdk-diff-action copied to clipboard

Support `diffForStages` and `failOnDestructiveChanges`

Open mrgrain opened this issue 2 years ago • 2 comments

This is basically the inverse of the current noDiffForStages and noFailOnDestructiveChanges.

But that's probably just one solution to my actual use case:

  • I have a large app with many stacks/stages across different regions
  • For reasons, I cannot have a single role that can perform diff for all stages across all regions
  • I am looking for a way to group my stacks into multiple jobs that each use a different role and diff a subset of stages
  • Currently I have to exclude the unwanted stages, which causes a lot of repetition.

PS: Not using failOnDestructiveChanges. Just threw this in for good measure. 😂

mrgrain avatar Jan 17 '24 13:01 mrgrain

noDiffForStages doesn't even seem to work. Based on code, we get the input, but not doing anything with it.

bnazanb avatar Oct 11 '24 15:10 bnazanb

I just created a new v2-beta release which replaces the diffForStages with stackSelectorPatterns from the @aws-cdk/toolkit-lib library which should fix this issue. Please give it a try and let me know!

corymhall avatar May 03 '25 10:05 corymhall