{
  "slug": "pulumi-do-assigns-identifiers-to-existing-stack-resources-f1e8b8e5637b",
  "title": "pulumi do assigns identifiers to existing stack resources",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-13T14:42:12.000Z",
  "announced_at": "2026-08-13T14:42:12.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an input expression needs to refer to a resource in the current stack, use its auto-assigned identifier in place of its URN. Run `pulumi do show-resources` to inspect those identifiers.",
    "examples": [
      "pulumi do show-resources",
      "pulumi do <package:module:type> <operation> <name> --input-file <input-file>"
    ],
    "gotchas": [
      "Version: v3.257.0",
      "<input-file> (required): Path to the input file; resource references use `${<identifier>}` syntax in YAML examples.",
      "--input-file: Supplies function or resource inputs from a file; optional for resource operations generally, but used by the documented reference example.",
      "--output: For `show-resources`, selects `text` or `json`; default is `text`.",
      "Prerequisite: Pulumi CLI version 3.257.0 or later.",
      "Docs conflict: Current command reference is generated for Pulumi CLI v3.261.0, later than the card’s v3.257.0. The official docs describe `pulumi do` as research preview; a later Pulumi announcement says it became generally available in v3.258.0."
    ]
  },
  "why_it_matters": "Use existing stack resources in a `pulumi do` input expression and inspect the identifiers assigned to them.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.257.0",
    "https://www.pulumi.com/docs/iac/cli/commands/pulumi_do_show-resources/",
    "https://www.pulumi.com/docs/iac/cli/direct-resource-operations/get-started/",
    "https://www.pulumi.com/docs/iac/cli/direct-resource-operations/"
  ],
  "rank": 0.97033,
  "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": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-2b264b2e208bbeff-1:gate",
    "evidence_hash": "ece4bfd3b64a39cac3c500b61d6e958a2e956f34501f1463c0afae1c6505e9ae"
  },
  "review": {
    "draft_hash": "aab6df5a5c5e81c7e0b0e1297559f0a3bbe7a512f3b268497cf875715cbf5a3b",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.60 (>= 0.6 needed)."
  }
}
