{
  "slug": "cdk-stack-selection-supports-exclusion-patterns-9107634cf420",
  "title": "cdk stack selection supports ! exclusion patterns",
  "tools": [
    "cdk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-09T14:16:58.000Z",
  "announced_at": "2026-09-09T14:16:58.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When deploying selected stacks, prefix each stack pattern to exclude with `!` and quote it so the shell preserves it. CDK removes stacks matched by exclusion patterns from the selected stacks.",
    "examples": [
      "cdk deploy '<include-pattern>' '!<exclude-pattern>'",
      "cdk deploy '**' '!<exclude-pattern>'"
    ],
    "gotchas": [
      "Version: 2.1141.0",
      "<include-pattern>: Stack ID pattern to select. `*` matches one hierarchy level; `**` matches any depth. If only `!` patterns are supplied, they apply to every stack.",
      "!<exclude-pattern>: Excludes stacks matched by the pattern. Quote it so the shell preserves `!`; multiple patterns can be combined.",
      "--exclusively (-e): For `cdk deploy`, skips dependencies of selected stacks; use if an excluded stack is otherwise needed as a dependency.",
      "Prerequisite: Requires Node.js or another JavaScript runtime; minimum supported Node.js version is 18."
    ]
  },
  "why_it_matters": "Select CDK stacks while excluding stacks that match a pattern.",
  "sources": [
    "https://github.com/aws/aws-cdk-cli/releases/tag/aws-cdk%40v2.1141.0",
    "https://github.com/aws/aws-cdk-cli/blob/021a083d86b7186ef341fddd41f9b53fcf90c6f7/packages/aws-cdk/README.md"
  ],
  "rank": 0.93036,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-96a7e0f4b5222d18-1:gate",
    "evidence_hash": "03b5da2ac03dd06ea0064e6ab279b755ef333e9a7187d64ae41e1fa1447d9832"
  },
  "review": {
    "draft_hash": "28e94a6289d3fb83f041a8f36d06a854c7b367dcf45402feadb8d6c1f52057e1",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.67 (>= 0.6 needed)."
  }
}
