https://pulumi.com logo
#general
Title
# general
m

mammoth-art-6111

04/04/2022, 7:48 PM
any way to get pulumi to re-output the generated code from a
pulumi import
? i imported a lot of things using TMUX and...yeah
b

billowy-army-68599

04/04/2022, 7:49 PM
delete the resoruce from state and reimport?
Copy code
pulumi state delete <urn>
m

mammoth-art-6111

04/04/2022, 8:01 PM
😬
works i guess, but a little scary
b

billowy-army-68599

04/04/2022, 8:14 PM
shouldn't feel scary, if the resource isn't in the state, pulumi "forgets" it. Importing it readds it to the state and generates the code that matches it
l

little-cartoon-10569

04/04/2022, 8:58 PM
Weird eh..
pulumi state delete
is safer than commenting code out 🙂
m

mammoth-art-6111

04/07/2022, 7:11 PM
things to get used to i guess