Hey guys, I tried to update description of my secu...
# aws
c
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
try
pulumi cancel
if you lucky it will stop
c
nope
it did not
it says
Conflict: The Update has already completed
h
try pulumi refresh
c
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
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
Yeah I did that. But i have the same issue
h
have you removed al th resources in pending?
b
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