Skip to content

Releases: cmodijk/cdk-diff-action

v2.0.2

16 Aug 04:04

Choose a tag to compare

2.0.2 (2025-08-16)

v2.0.1

16 Aug 02:03

Choose a tag to compare

2.0.1 (2025-08-16)

v2.0.0

15 Aug 18:13
f9d1598

Choose a tag to compare

2.0.0 (2025-08-15)

⚠ BREAKING CHANGES

  • several breaking changes with details below

There are several breaking changes in this release.

  1. Replace noDiffForStages with stackSelectionStrategy &
    stackSelectorPatterns
    This uses the native selection stack filtering capability of
    toolkit-lib and should be a more robust option for users to filter
    stacks. stackSelectorPatterns also uses a multi-line input instead of
    a comma delimited string input. To migrate from noDiffForStages to
    stackSelectorPatterns you can do this:
# from this
- name: Diff
   uses: corymhall/cdk-diff-action@v1
   with:
     noDiffForStages: "Stage1,Stage2"
     githubToken: ${{ secrets.GITHUB_TOKEN }}

# to this
- name: Diff
   uses: corymhall/cdk-diff-action@v2-beta
   with:
     stackSelectorPatterns: |
       !Stage1/*
       !Stage2/*
     githubToken: ${{ secrets.GITHUB_TOKEN }}
  1. The default diffMethod is changed to change-set to match the cdk
    default behavior. This also changes the IAM Role used for diff from the
    lookup-role to the deploy-role. To keep the old behavior you can
    specify diffMethod: template-only
  2. allowDestroyTypes and noFailOnDestructiveChanges input types were
    changed from a comma delimited string to a multi-line string.
# from this
- name: Diff
   uses: corymhall/cdk-diff-action@v1
   with:
     noFailOnDestructiveChanges: "Stage1,Stage2"
     githubToken: ${{ secrets.GITHUB_TOKEN }}

# to this
- name: Diff
   uses: corymhall/cdk-diff-action@v2-beta
   with:
     noFailOnDestructiveChanges: |
       Stage1
       Stage2
     githubToken: ${{ secrets.GITHUB_TOKEN }}
  • several breaking changes with details below

There are several breaking changes in this release.

  1. Replace noDiffForStages with stackSelectionStrategy &
    stackSelectorPatterns
    This uses the native selection stack filtering capability of
    toolkit-lib and should be a more robust option for users to filter
    stacks. stackSelectorPatterns also uses a multi-line input instead of
    a comma delimited string input. To migrate from noDiffForStages to
    stackSelectorPatterns you can do this:
- name: Diff
   uses: corymhall/cdk-diff-action@v1
   with:
     noDiffForStages: "Stage1,Stage2"
     githubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Diff
   uses: corymhall/cdk-diff-action@v2-beta
   with:
     stackSelectorPatterns: |
       !Stage1/*
       !Stage2/*
     githubToken: ${{ secrets.GITHUB_TOKEN }}
  1. The default diffMethod is changed to change-set to match the cdk
    default behavior. This also changes the IAM Role used for diff from the
    lookup-role to the deploy-role. To keep the old behavior you can
    specify diffMethod: template-only
  2. allowDestroyTypes and noFailOnDestructiveChanges input types were
    changed from a comma delimited string to a multi-line string.
- name: Diff
   uses: corymhall/cdk-diff-action@v1
   with:
     noFailOnDestructiveChanges: "Stage1,Stage2"
     githubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Diff
   uses: corymhall/cdk-diff-action@v2-beta
   with:
     noFailOnDestructiveChanges: |
       Stage1
       Stage2
     githubToken: ${{ secrets.GITHUB_TOKEN }}

Features

Bug Fixes

  • action fails when there is missing context (#141) (57ac3a1)
  • auth check doesn't account for assumed role (#45) (a7c9da4)
  • better handle authentication issues (#42) (c90937f), closes #35
  • fix formatting when there are destructive changes (#24) (ab28e1c)
  • Fixes the partition arn for chinese regions (#82) (5f75306), closes #79 #71 #79
  • forgot to run build (72862f8)
  • generating output (c6850c8)
  • get stack region from manifest (2b7d74d)
  • handle new stacks (cb75af7)
  • must have a minimum of 900 durationseconds (69bf899)
  • noFailOnDestructiveChanges doesn't work (#19) (ac11485)
  • pinning cdk dependencies (#18) (8a635b4)
  • process longer comments (#137) (9621033)
  • sometimes the stage comment is too long (#33) (e154417), closes #32
  • template is already JSON (5e6bde2)
  • upgrade toolkit-lib and use stack displayName (#134) (4603015)
  • Use GovCloud partition in ARN for GovCloud regions (#71) (2d044f6), cl...
Read more