cdk-real-drift 0.12.55 → 0.12.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -384,7 +384,7 @@ CI (with `--yes`).
384
384
  | `--profile <p>` | AWS profile (else `$AWS_PROFILE`, else `$AWS_DEFAULT_PROFILE` — same order `aws` and `cdk` use) |
385
385
  | `-a, --app <cmd\|cdk.out>` | CDK app command or pre-synthesized assembly dir (or `$CDKRD_APP` / cdk.json `"app"`); stack auto-discovery + construct paths |
386
386
  | `-c, --context key=value` | context for synth (repeatable; cdk.json is the base layer) |
387
- | `--all` | target every stack the app defines (the default when no `<stack>` is named; overrides any positional names) |
387
+ | `--all` | target every stack the app defines (the default when no `<stack>` is named; cannot be combined with named stacks — a `<stack> ... --all` invocation errors) |
388
388
  | `--json` | machine-readable output (see [JSON contract](#json-output-contract)) |
389
389
  | `--fail` | (check) exit 1 on drift and never prompt; for scripts/CI. Without it, check reports drift but exits 0 |
390
390
  | `--strict` | (check) exit 1 when coverage is incomplete. A coverage gap is always surfaced loudly; `--strict` makes it CI-failing. Orthogonal to `--fail` |
@@ -408,9 +408,9 @@ error (they select which comparison runs, so a combination is contradictory).
408
408
  ### Interactive prompts (TTY only, CI is never prompted)
409
409
 
410
410
  Every option runs exactly the same code as the standalone commands. Prompts are
411
- skipped under `--json`, `--show-all`, `--pre-deploy`, `--fail`, and the scope
412
- filters `--declared-only` / `--undeclared-only` (a filtered finding set must never
413
- become a snapshot-complete baseline via the inline Record — use the standalone
411
+ skipped under `--json`, `--show-all`, `--pre-deploy`, `--fail`, `--yes`, and the
412
+ scope filters `--declared-only` / `--undeclared-only` (a filtered finding set must
413
+ never become a snapshot-complete baseline via the inline Record — use the standalone
414
414
  `record` verb, which sees the unfiltered state, #779). A non-TTY run
415
415
  never prompts: a required write decision without `--yes` errors with exit 2 (the
416
416
  safe side). "Interactive" requires **both** a TTY stdin and a TTY stdout — so
@@ -420,8 +420,9 @@ would otherwise deadlock, waiting on stdin for a prompt written into the file) a
420
420
  no spinner frames leaking into the text. `--yes` in a TTY skips the write
421
421
  confirmation AND each verb's selection
422
422
  multiselect — `record` records ALL, `ignore` ignores ALL, `revert` applies the full
423
- plan. Only `check`'s action menu (Record / Revert / Ignore / …) still shows under
424
- `--yes`.
423
+ plan. `check --yes` never opens the action menu (Record / Revert / Ignore / …) —
424
+ it just reports (#1054/#1185); use the standalone `record --yes` / `ignore --yes`
425
+ / `revert --yes` verbs for scripted, non-interactive decisions.
425
426
 
426
427
  - **`check` with drift** offers `Record / Revert / Ignore / Decide per finding /
427
428
  Nothing` (see [The model](#the-model-one-verb-you-run-three-it-offers)). Each
package/dist/cli.js CHANGED
@@ -1490,6 +1490,7 @@ function assertNoStackErrors(selected) {
1490
1490
  if (lines.length > 0) throw new Error(`the CDK app synthesized with ${lines.length} error(s) (an Annotations.addError — cdk-nag / security aspect / do-not-deploy guard) on the selected stack(s); refusing to read or revert an app in an error state:\n${lines.join("\n")}`);
1491
1491
  }
1492
1492
  async function resolveStacks(a) {
1493
+ if (a.all && a.stackNames.length > 0) throw new Error(`--all cannot be combined with named stacks (${a.stackNames.join(", ")}): --all targets every stack the app defines. Drop --all to scope to the named stacks, or drop the names to target all.`);
1493
1494
  const app = resolveApp(a.app);
1494
1495
  if (!app) throw new Error("cdkrd needs a CDK app: run in a directory with cdk.json, pass --app \"<cmd>\" or --app <cdk.out> (a pre-synthesized assembly), or set $CDKRD_APP");
1495
1496
  const scopePatterns = !a.all && a.stackNames.length > 0 ? a.stackNames : void 0;
@@ -16184,6 +16185,7 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
16184
16185
  "AWS::EC2::Instance\0InstanceInitiatedShutdownBehavior",
16185
16186
  "AWS::EC2::ClientVpnEndpoint\0VpnPort",
16186
16187
  "AWS::EC2::ClientVpnEndpoint\0DisconnectOnSessionTimeout",
16188
+ "AWS::EC2::ClientVpnEndpoint\0SessionTimeoutHours",
16187
16189
  "AWS::EC2::ClientVpnEndpoint\0SplitTunnel",
16188
16190
  "AWS::DocDB::DBCluster\0Port",
16189
16191
  "AWS::DocDB::DBCluster\0BackupRetentionPeriod",
@@ -19261,7 +19263,7 @@ OPTIONS
19261
19263
  auto-discovery + construct-path output
19262
19264
  -c, --context key=value context for synth (repeatable; cdk.json is the base)
19263
19265
  --all target EVERY stack the app defines (the default when
19264
- no <stack> is named; overrides any positional names)
19266
+ no <stack> is named; cannot be combined with named stacks)
19265
19267
  --json machine-readable output
19266
19268
  --fail (check) exit 1 on drift + never prompt — for
19267
19269
  scripts/CI (same convention as \`cdk diff --fail\`);