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

hallowed-horse-57635

03/15/2024, 11:34 PM
So what is your preference? you want to remove the stack or keep the stack but force the resources to be removed?
d

delightful-monkey-90700

03/15/2024, 11:50 PM
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

hallowed-horse-57635

03/16/2024, 12:05 AM
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

delightful-monkey-90700

03/16/2024, 12:14 AM
I want to do it without directly manipulating the stack state
h

hallowed-horse-57635

03/16/2024, 12:22 AM
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

delightful-monkey-90700

03/16/2024, 4:20 PM
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