pulumi import --preview-only emits generated resource code
Introduced 2026-11-04 · score 0.91
HOW TO USE IT
When you need to inspect generated code without importing the resource, run `pulumi import` with `--preview-only`.
pulumi import '<type-token>' <name> <id> --preview-onlyWHY THIS HELPS
Inspect generated resource code from an import preview without applying the import.
REQUIREMENTS AND LIMITATIONS
- Version: 3.274.0
- --preview-only: Show the import preview without performing the import.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.274.0
- https://www.pulumi.com/docs/iac/cli/commands/pulumi_import/
Check the installed version and the source before using it. Entry JSON