Is it possible to generate code with `pulumi impor...
# general
Is it possible to generate code with
pulumi import
(or similar) but not modify the stack’s state? I have some resources I want to generate the pulumi code for but am not ready to move them under pulumi’s management quite yet.
A workaround I used on the past is deleting the element from the state after the import, using
pulumi state delete <resourceUrn>
I don't think so. Another, slightly faster workaround would be to create a new stack, import to that stack, then just throw it away.
Seems like a popular request. Upvote the issue here: