sincecutoff.com
← all changes

pulumi do assigns identifiers to existing stack resources

Introduced 2026-08-13 · score 0.97

HOW TO USE IT

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.

pulumi do show-resources
pulumi do <package:module:type> <operation> <name> --input-file <input-file>

WHY THIS HELPS

Use existing stack resources in a `pulumi do` input expression and inspect the identifiers assigned to them.

REQUIREMENTS AND LIMITATIONS

  • 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.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card