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

average-dream-51210

05/30/2019, 12:37 AM
Hm somehow I got stuck in a state where when I do
pulumi destroy
it fails trying to delete some resources:
w

white-balloon-205

05/30/2019, 12:38 AM
What is the last part of the error message here?
a

average-dream-51210

05/30/2019, 12:39 AM
This is the whole thing:
w

white-balloon-205

05/30/2019, 12:39 AM
Note that you can do
pulumi state delete <urn>
to remove the resource from your state file (and manually clean up in the cloud provider if indeed the resource is still there). You can also do
pulumi refresh
which should remove these from the state file if they cannot be found in the cloud (as well as update any other resources to the state they are in in the cloud).
a

average-dream-51210

05/30/2019, 12:39 AM
It's been stuck in that state for a while, i'll wait for a bit before manually canceling out.
Ah okay! nice thanks!
w

white-balloon-205

05/30/2019, 12:40 AM
Hmm - I'm surprised there are not more details on that error. But I would expect one of the two options about to help here.
a

average-dream-51210

05/30/2019, 12:41 AM
kk thanks got it, I will wait 10 minutes to see if it reports anything and post it here. If not i'll cancel out and do a manual cleanup.
I think I borked it by being impatient in one of the
pulumi up
or
pulumi destroy
and cancelled out in the middle of the operation.
This is the error I get when I ctrl-c out:
Just cleared all pending operations from the state file, then did a Pulumi refresh, and there were diffs on the resource that couldn't be deleted:
After refreshing, did a
pulumi destroy
and its stuck on the same thing, unable to delete the Elastic IPs
Going to try to manually delete everything now
Problem resolved, manually deleted everything and `pulumi refresh`'d . Thanks!
👍 1
2 Views