So what is your preference? you want to remove the...
# general
h
So what is your preference? you want to remove the stack or keep the stack but force the resources to be removed?
d
I want to keep the stack and all its resources... I'm not sure what you're asking. The deleted Virtual Machines have already been deleted from the cloud provider, but they still exist within the stack since it was in the middle of a Replace operation, and it did the Delete step
h
There are a couple of options. Wasn't sure you want to resurrect the vms or are ok with removing just the resources from the stack that have apparently been removed. I believe there is a destroy option with an arn argument that deletes the resource from the stack. You can double check the arguments for that command.
d
I want to do it without directly manipulating the stack state
h
Guess we are talking past each other. I will let others explain. Everything has to go through the state so not sure If I understand. The main point is do you want the vms back now somehow?
In simpler terms it seems like you want to reconcile the state with the target without having to do any state operation. I have used gcp and azure and haven't had to do this. May be once or twice but refresh had helped. I think only once I had to do some thing crazy but don't remember specifics being specifying arn to remove from state.
d
Yes, I want Pulumi to update the state -- not me by issuing a state command like
pulumi state
I was able to resolve it by commenting out the instantiation of those resources, redeploying it, then adding them back