https://pulumi.com logo
Title
c

colossal-battery-24701

06/10/2021, 11:19 AM
Hey guys, I tried to update description of my security group and found that while running the update, it tried to delete the previous one. I did not want to delete the security group as I was using this with RDS and I stopped the update with Cmd+C. Now the problem is whenever I run
pulumi up
with other update code, I get
completing deletion from previous update
. But I don’t want to do this. how do I cancel this?
h

happy-angle-19851

06/10/2021, 11:21 AM
try
pulumi cancel
if you lucky it will stop
c

colossal-battery-24701

06/10/2021, 11:21 AM
nope
it did not
it says
Conflict: The Update has already completed
h

happy-angle-19851

06/10/2021, 11:22 AM
try pulumi refresh
c

colossal-battery-24701

06/10/2021, 11:32 AM
I did
pulumi refresh
got an error. It suggested to remove pending_operations from
pulumi stack output
. I exported the stack to a file, removed pending_operations. Imported the stack again
pulumi stack import --file <file_name>
. Did
pulumi refresh
again (no errors this time). But I still the delete operation while doing
pulumi up
h

happy-angle-19851

06/10/2021, 11:35 AM
you can export the json file and delete the resources that causing error and import to pulumi again you will be good to go
c

colossal-battery-24701

06/10/2021, 11:36 AM
Yeah I did that. But i have the same issue
h

happy-angle-19851

06/10/2021, 11:39 AM
have you removed al th resources in pending?
b

brave-planet-10645

06/10/2021, 12:35 PM
There's another way you can do this...
pulumi stack export | pulumi stack import
Can you try that (if you haven't gone through and deleted the
resources_pending
yourself