Is it possible to generate code with `pulumi impor...
# general
a
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.
m
A workaround I used on the past is deleting the element from the state after the import, using
pulumi state delete <resourceUrn>
.
l
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.
s
Seems like a popular request. Upvote the issue here: https://github.com/pulumi/pulumi/issues/8836