Add --code-only
feature to pulumi import
, getting code without updating stack/state
#6653
Labels
area/cli
UX of using the CLI (args, output, logs)
area/codegen
SDK-gen, program-gen, convert
kind/enhancement
Improvements or new features
resolution/duplicate
This issue is a duplicate of another issue
Currently we can use
pulumi import
, and doing so updates the state of the stack imported. It would be great to have the something likepulumi import --code-only
where it only gets the code and does not update the state of the stack.Currently the only way we know how to do this is run
pulumi import
and then delete the most recent updated stack state.Affected feature
pulumi import
would be affected, giving it an option to exclude updating the state of the stack upon import. This would allow us to get the code for the part, somewhat like a template, and then use it elsewhere, without having to worry about the state of our stack potentially changing.The text was updated successfully, but these errors were encountered: