sincecutoff.com
← all changes

cdk diff adds --method to enforce change set usage

Introduced 2026-03-30 · score 0.96

HOW TO USE IT

When a stack diff must always use a CloudFormation change set, run `cdk diff <stack-id> --method=change-set`. The command fails if it cannot create the change set.

cdk diff <stack-id> --method=change-set

WHY THIS HELPS

When reviewing a CDK stack diff that must use a change set, enforce change set usage.

REQUIREMENTS AND LIMITATIONS

  • Version: v2.1115.0
  • <stack-id>: CDK stack construct ID to diff.
  • --method=change-set: Always creates a CloudFormation change set and fails if it cannot be created; uses the deploy role. Allowed `--method` values documented: `auto` (default), `change-set`, `template`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card