03/20/2023, 8:23 AM
Hi, Is there a way to refresh the stack at runtime after a resource has been created?


03/20/2023, 2:42 PM
I don’t believe so — not if you mean refresh the stack while the update that created the resource is currently running. What is it you need to do, though? Does the resource creation trigger some behavior that results in other resources disappearing? How does the stack change in the background? How would a refresh help? A bit more info might help us come up with something that’d work for you.


03/20/2023, 2:44 PM
so I have a provider for a firewall that is based on a terraform provider. It has a resource that lets you define the sequence of firewall policies. The problem is that if I move policy 1 and policy 2 after each other, then policy 2 is unaware of policy 1's new position
not sure whether that happens with terraform too, but it sure is annoying 🙂
for now, I run pulumi refresh && pulumi up in a loop, which will eventually get me the expected result