{
  "slug": "terragrunt-filter-is-generally-available-for-run-queue-targeting-b46b95ad249b",
  "title": "terragrunt --filter is generally available for Run Queue targeting",
  "tools": [
    "terragrunt"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-05T15:36:17.000Z",
  "announced_at": "2026-01-05T15:36:17.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For targeted Run Queue discovery or execution, use Terragrunt’s unified `--filter` expressions for paths, files read, and dependency traversal. Use `--filters-file` for newline-delimited filters; a legacy excludes file needs conversion to filter expressions.",
    "examples": [
      "terragrunt find --filter '{./<path>}'",
      "terragrunt find --filter 'reading=<file>'",
      "terragrunt run --all --filters-file <filters.txt> -- <tofu-command>"
    ],
    "gotchas": [
      "Version: v0.97.0",
      "Availability: The --filter flag is generally available; legacy queue flag aliases will not be removed before Terragrunt 1.0.",
      "--filter <expression>: Select units/stacks with a filter expression; repeat the flag to combine filters. Path inclusion uses `{./path}`, exclusion uses `!{./path}`, file-read matching uses `reading=<file>`, and graph traversal uses `...` around a target.",
      "--filters-file <file>: Read filter expressions from a newline-delimited text file; the docs show empty lines and `#` comment lines are ignored.",
      "reading=<file>: Attribute expression that matches units/stacks that read the named file.",
      "...: Graph traversal operator; after a target includes its dependencies, before a target includes its dependents. Both directions are supported by surrounding the target.",
      "Prerequisite: Terragrunt v0.97.0 or later for the generally available `--filter` flag.",
      "Prerequisite: Filters files contain newline-delimited expressions; the v0.97.0 release note says a `--queue-excludes-file` file does not directly translate to a `--filters-file` file.",
      "A file used for `--queue-excludes-file` does not directly translate to a file usable with `--filters-file`.",
      "Legacy queue flag aliases remain for backwards compatibility and will not emit deprecation warnings.",
      "Docs conflict: Current docs describe graph expressions as `...<target>` for dependents and `<target>...` for dependencies; this differs from the v0.97.0 release note’s `{./**}...` and `...{.}` examples. Use the release-note mappings for v0.97.0."
    ]
  },
  "why_it_matters": "Target units or visualize the Run Queue in a Terragrunt repository using unified filter expressions.",
  "before": "Use the corresponding queue control flag: `--queue-include-dir`, `--queue-exclude-dir`, `--queue-include-units-reading`, `--units-that-include`, `--queue-include-external-dependencies`, `--queue-excludes-file`, or `--graph`.",
  "sources": [
    "https://github.com/gruntwork-io/terragrunt/releases/tag/v0.97.0",
    "https://docs.terragrunt.com/features/filter/filters-file/",
    "https://docs.terragrunt.com/features/filter/graph/"
  ],
  "rank": 0.93056,
  "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-38d3236544701c43-4:gate",
    "evidence_hash": "aa088ac10ce5c2c5b5309a3f00758291fa51fc3e13c36028da4458817fa66705"
  },
  "review": {
    "draft_hash": "acf59a6df396a8f0b180a63a06fd6a048408f2567663ec952f30e61e714ab646",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
