{
  "slug": "pulumi-import-supports-structured-json-output-6a2bb80f04d3",
  "title": "pulumi import supports structured JSON output",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-14T12:56:20.000Z",
  "announced_at": "2026-05-14T12:56:20.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When importing an existing resource and you need a programmatically consumable result, run `pulumi import` with `--output json` and the resource’s type token, name, and ID. The JSON output summarizes the operation result.",
    "examples": [
      "pulumi import <type-token> <name> <id> --output json"
    ],
    "gotchas": [
      "Version: v3.239.0",
      "<type-token> (required): Pulumi resource type token; find it in the resource’s Import documentation.",
      "<name> (required): Name to assign to the imported resource.",
      "<id> (required): Cloud provider resource identifier used to look up the resource.",
      "--output json (required): For this task, requests the structured JSON summary of the import operation result.",
      "Prerequisite: Run the command for an existing Pulumi stack; the CLI imports resources into that stack.",
      "Docs conflict: The current Pulumi CLI reference is generated for v3.270.0 and documents `-j, --json` for JSON output, rather than the release note’s `--output json` syntax. This newer-version documentation does not establish the flag spelling for v3.239.0."
    ]
  },
  "why_it_matters": "When importing resources and consuming the result programmatically, request a structured JSON summary.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.239.0",
    "https://www.pulumi.com/docs/iac/cli/commands/pulumi_import/",
    "https://www.pulumi.com/docs/iac/guides/migration/import/"
  ],
  "rank": 0.96029,
  "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-d408cc5602b6e976-0:gate",
    "evidence_hash": "88fab4a1d52c8971a8d9d5d9edc2d0a786ac27ca15760919d58ec1f141261870"
  },
  "review": {
    "draft_hash": "524ce7ce9cf8055a3d9b30d7d83bb64979268707168c27132b69826987717d43",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
