Is there a shortcut to refresh a stack and remove ...
# general
a
Is there a shortcut to refresh a stack and remove all pending operations? I currently do refresh, export, edit the stack manually and then import it again.
c
I currently do the same. There is an issue open that talks about that very same issue I believe. https://github.com/pulumi/pulumi/issues/4265
Reference: https://github.com/pulumi/pulumi/issues/4265#issuecomment-1089332739
pulumi refresh
will now clear pending operations (except pending CREATE operations) •
pulumi up
will not error when there are pending operations, instead it will show a warning that they are there and how to resolve them.
a
Thanks for the pointer to the issue. In my case it’s a CREATE operation that I’m trying to get right (it just gets stuck and I have to interrupt pulumi). But to get my changes in I have to cleanup every time.
c
Is it getting stuck quite often? Why is it getting stuck (expired credentials, network related issues)?